mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Will now warn about non-existent attachments.
This commit is contained in:
		| @@ -851,6 +851,7 @@ return [ | ||||
|     'opt_group_l_Credit card'                 => 'Liability: Credit card', | ||||
|     'notes'                                   => 'Notes', | ||||
|     'unknown_journal_error'                   => 'Could not store the transaction. Please check the log files.', | ||||
|     'attachment_not_found'                    => 'This attachment could not found in the storage.', | ||||
|  | ||||
|     // new user: | ||||
|     'welcome'                                 => 'Welcome to Firefly III!', | ||||
|   | ||||
| @@ -249,7 +249,7 @@ | ||||
|                     </table> | ||||
|                 </div> | ||||
|             </div> | ||||
|             {% if journal.attachments|length > 0 %} | ||||
|             {% if attachments|length > 0 %} | ||||
|                 <div class="box"> | ||||
|                     <div class="box-header with-border"> | ||||
|                         <h3 class="box-title">{{ 'attachments'|_ }}</h3> | ||||
| @@ -262,21 +262,38 @@ | ||||
|                                         <div class="btn-group btn-group-xs"> | ||||
|                                             <a href="{{ route('attachments.edit', att.id) }}" class="btn btn-default"><i class="fa fa-pencil"></i></a> | ||||
|                                             <a href="{{ route('attachments.delete', att.id) }}" class="btn btn-danger"><i class="fa fa-trash"></i></a> | ||||
|                                             <a href="{{ route('attachments.download', att.id) }}" class="btn btn-default"><i class="fa fa-download"></i></a> | ||||
|                                             {% if att.file_exists %} | ||||
|                                                 <a href="{{ route('attachments.download', att.id) }}" class="btn btn-default"><i class="fa fa-download"></i></a> | ||||
|                                             {% endif %} | ||||
|                                             {% if not att.file_exists %} | ||||
|                                                 <a href="#" class="btn btn-danger"><i class="fa fa-exclamation-triangle"></i></a> | ||||
|                                             {% endif %} | ||||
|                                         </div> | ||||
|                                     </td> | ||||
|                                     <td> | ||||
|                                         <i class="fa {{ att.mime|mimeIcon }}"></i> | ||||
|                                         <a href="{{ route('attachments.view', att.id) }}" title="{{ att.filename }}"> | ||||
|                                             {% if att.title %} | ||||
|                                                 {{ att.title }} | ||||
|                                             {% else %} | ||||
|                                                 {{ att.filename }} | ||||
|                                         {% if att.file_exists %} | ||||
|                                             <i class="fa {{ att.mime|mimeIcon }}"></i> | ||||
|                                             <a href="{{ route('attachments.view', att.id) }}" title="{{ att.filename }}"> | ||||
|                                                 {% if att.title %} | ||||
|                                                     {{ att.title }} | ||||
|                                                 {% else %} | ||||
|                                                     {{ att.filename }} | ||||
|                                                 {% endif %} | ||||
|                                             </a> | ||||
|                                             ({{ att.size|filesize }}) | ||||
|                                             {% if att.notes.first %} | ||||
|                                                 {{ att.notes.first.text|markdown }} | ||||
|                                             {% endif %} | ||||
|                                         </a> | ||||
|                                         ({{ att.size|filesize }}) | ||||
|                                         {% if att.notes.first %} | ||||
|                                             {{ att.notes.first.text|markdown }} | ||||
|                                         {% endif %} | ||||
|                                         {% if not att.file_exists %} | ||||
|                                             <i class="fa fa-fw fa-exclamation-triangle"></i> | ||||
|                                                 {% if att.title %} | ||||
|                                                     {{ att.title }} | ||||
|                                                 {% else %} | ||||
|                                                     {{ att.filename }} | ||||
|                                                 {% endif %} | ||||
|                                             <br> | ||||
|                                             <span class="text-danger">{{ 'attachment_not_found'|_ }}</span> | ||||
|                                         {% endif %} | ||||
|                                     </td> | ||||
|                                 </tr> | ||||
| @@ -426,8 +443,10 @@ | ||||
|                             <div class="col-sm-10"> | ||||
|                                 <select id="link_type" class="form-control" name="link_type"> | ||||
|                                     {% for linkType in linkTypes %} | ||||
|                                         <option label="{{ journalLinkTranslation('inward', linkType.inward) }}" value="{{ linkType.id }}_inward">{{ journalLinkTranslation('inward', linkType.inward) }}</option> | ||||
|                                         <option label="{{ journalLinkTranslation('outward', linkType.outward) }}" value="{{ linkType.id }}_outward">{{ journalLinkTranslation('outward', linkType.outward) }}</option> | ||||
|                                         <option label="{{ journalLinkTranslation('inward', linkType.inward) }}" | ||||
|                                                 value="{{ linkType.id }}_inward">{{ journalLinkTranslation('inward', linkType.inward) }}</option> | ||||
|                                         <option label="{{ journalLinkTranslation('outward', linkType.outward) }}" | ||||
|                                                 value="{{ linkType.id }}_outward">{{ journalLinkTranslation('outward', linkType.outward) }}</option> | ||||
|                                     {% endfor %} | ||||
|                                 </select> | ||||
|                             </div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user