Use preview instead of image text

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2025-07-03 20:19:29 +01:00
parent 4db3b3ba0e
commit 4ef0158da4
+6 -1
View File
@@ -32,7 +32,7 @@
{{trans('general.file_type')}}
</th>
<th class="col-md-2" data-searchable="true" data-visible="true" data-field="image">
{{ trans('general.image') }}
{{ trans('general.preview') }}
</th>
<th class="col-md-2" data-searchable="true" data-visible="true" data-field="filename" data-sortable="true">
{{ trans('general.file_name') }}
@@ -76,6 +76,11 @@
<a href="{{ route($showfile_routename, [$object->id, $file->id, 'inline' => 'true']) }}" data-toggle="lightbox" data-type="image">
<img src="{{ route($showfile_routename, [$object->id, $file->id, 'inline' => 'true']) }}" class="img-thumbnail" style="max-width: 50px;">
</a>
@elseif (Helper::checkUploadIsAudio($file->get_src(str_plural(strtolower(class_basename(get_class($object)))))))
<audio controls>
<source src="{{ route($showfile_routename, [$object->id, $file->id, 'inline' => 'true']) }}" type="audio/mp3">
Your browser does not support the audio element.
</audio>
@else
{{ trans('general.preview_not_available') }}
@endif