Skip to content

Commit

Permalink
Merge pull request #553 from lsgd/master
Browse files Browse the repository at this point in the history
Add link to file preview which opens the file itself
  • Loading branch information
sergix44 committed Jan 14, 2024
2 parents bd3ca55 + eee4976 commit 59c6691
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/templates/dashboard/list.twig
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
{% for media in medias %}
<tr id="media_{{ media.id }}" class="bulk-selector" data-id="{{ media.id }}">
<td class="text-center">
<a href="{{ urlFor('/' ~ media.user_code ~ '/' ~ media.code ~ '.' ~ media.extension) }}" target="_blank">
{% if isDisplayableImage(media.mimetype) %}
{% if media.username is not null %}
<img src="{{ urlFor('/' ~ media.user_code ~ '/' ~ media.code ~ '.' ~ media.extension ~ '/raw?width=84&height=42') }}" class="img-fluid rounded">
Expand All @@ -42,6 +43,7 @@
{% else %}
<i class="far {{ mime2font(media.mimetype) }} fa-2x"></i>
{% endif %}
</a>
</td>
<td>
<span class="text-maxlen">{{ media.filename }}</span>
Expand Down

0 comments on commit 59c6691

Please sign in to comment.