diff options
Diffstat (limited to 'templates/mosaic.qtpl')
-rw-r--r-- | templates/mosaic.qtpl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/mosaic.qtpl b/templates/mosaic.qtpl index 18dbcba..21a8bae 100644 --- a/templates/mosaic.qtpl +++ b/templates/mosaic.qtpl @@ -7,14 +7,16 @@ <div class="column is-2"> {% for _, media := range c %} <div class="card-image"> + <a href="/detail?path_hash={%s media.PathHash %}"> {% if media.IsVideo() %} <video class="image is-fit" controls muted="true" poster="/media/thumbnail?path_hash={%s media.PathHash %}" preload="{%s preloadAttr %}"> <source src="/media/image?path_hash={%s media.PathHash %}" type="{%s media.MIMEType %}"> </video> {% else %} - <figure class="image is-fit"> - <img src="/media/thumbnail?path_hash={%s media.PathHash %}"> - </figure> + <figure class="image is-fit"> + <img src="/media/thumbnail?path_hash={%s media.PathHash %}"> + </figure> + </a> {% endif %} </div> {% endfor %} |