Commit e8838c90 authored by Nicolas Widart's avatar Nicolas Widart

Adding a thumbnail column

parent cdbec0a1
...@@ -36,7 +36,8 @@ ...@@ -36,7 +36,8 @@
<table class="data-table table table-bordered table-hover"> <table class="data-table table table-bordered table-hover">
<thead> <thead>
<tr> <tr>
<th>{{ trans('core::core.table.created at') }}</th> <th>{{ trans('media::media.table.filename') }}</th>
<th>{{ trans('core::core.table.thumbnail') }}</th>
<th>{{ trans('media::media.table.filename') }}</th> <th>{{ trans('media::media.table.filename') }}</th>
<th>{{ trans('core::core.table.actions') }}</th> <th>{{ trans('core::core.table.actions') }}</th>
</tr> </tr>
...@@ -50,6 +51,9 @@ ...@@ -50,6 +51,9 @@
{{ $file->created_at }} {{ $file->created_at }}
</a> </a>
</td> </td>
<td>
<img src="{{ Imagy::getThumbnail($file->path, 'smallThumb') }}" alt=""/>
</td>
<td> <td>
<a href="{{ URL::route('dashboard.media.edit', [$file->id]) }}"> <a href="{{ URL::route('dashboard.media.edit', [$file->id]) }}">
{{ $file->filename }} {{ $file->filename }}
...@@ -68,6 +72,7 @@ ...@@ -68,6 +72,7 @@
<tfoot> <tfoot>
<tr> <tr>
<th>{{ trans('core::core.table.created at') }}</th> <th>{{ trans('core::core.table.created at') }}</th>
<th>{{ trans('core::core.table.thumbnail') }}</th>
<th>{{ trans('media::media.table.filename') }}</th> <th>{{ trans('media::media.table.filename') }}</th>
<th>{{ trans('core::core.table.actions') }}</th> <th>{{ trans('core::core.table.actions') }}</th>
</tr> </tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment