mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-23 01:16:46 -06:00
Clean up view and route.
This commit is contained in:
parent
3dbe6d4870
commit
3fa39a6805
@ -288,11 +288,12 @@
|
|||||||
<div class="btn-group btn-group-xs">
|
<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.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.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>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<i class="fa {{ att.mime|mimeIcon }}"></i>
|
<i class="fa {{ att.mime|mimeIcon }}"></i>
|
||||||
<a href="{{ route('attachments.download', att.id) }}" title="{{ att.filename }}">
|
<a href="{{ route('attachments.view', att.id) }}" title="{{ att.filename }}">
|
||||||
{% if att.title %}
|
{% if att.title %}
|
||||||
{{ att.title }}
|
{{ att.title }}
|
||||||
{% else %}
|
{% else %}
|
||||||
@ -305,9 +306,6 @@
|
|||||||
<em>{{ att.description }}</em>
|
<em>{{ att.description }}</em>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td style="width:100px;">
|
|
||||||
<img src="{{ route('attachments.preview', att.id) }}"/>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
@ -130,8 +130,8 @@ Route::group(
|
|||||||
['middleware' => 'user-full-auth', 'prefix' => 'attachments', 'as' => 'attachments.'], function () {
|
['middleware' => 'user-full-auth', 'prefix' => 'attachments', 'as' => 'attachments.'], function () {
|
||||||
Route::get('edit/{attachment}', ['uses' => 'AttachmentController@edit', 'as' => 'edit']);
|
Route::get('edit/{attachment}', ['uses' => 'AttachmentController@edit', 'as' => 'edit']);
|
||||||
Route::get('delete/{attachment}', ['uses' => 'AttachmentController@delete', 'as' => 'delete']);
|
Route::get('delete/{attachment}', ['uses' => 'AttachmentController@delete', 'as' => 'delete']);
|
||||||
Route::get('preview/{attachment}', ['uses' => 'AttachmentController@preview', 'as' => 'preview']);
|
|
||||||
Route::get('download/{attachment}', ['uses' => 'AttachmentController@download', 'as' => 'download']);
|
Route::get('download/{attachment}', ['uses' => 'AttachmentController@download', 'as' => 'download']);
|
||||||
|
Route::get('view/{attachment}', ['uses' => 'AttachmentController@view', 'as' => 'view']);
|
||||||
|
|
||||||
Route::post('update/{attachment}', ['uses' => 'AttachmentController@update', 'as' => 'update']);
|
Route::post('update/{attachment}', ['uses' => 'AttachmentController@update', 'as' => 'update']);
|
||||||
Route::post('destroy/{attachment}', ['uses' => 'AttachmentController@destroy', 'as' => 'destroy']);
|
Route::post('destroy/{attachment}', ['uses' => 'AttachmentController@destroy', 'as' => 'destroy']);
|
||||||
|
Loading…
Reference in New Issue
Block a user