diff sat_templates/templates/default/photo/album.html @ 192:db2e11c45082

photo (album): vignettes are now clickable
author Goffi <goffi@goffi.org>
date Sat, 27 Apr 2019 11:31:04 +0200
parents 4a03d0a6839b
children
line wrap: on
line diff
--- a/sat_templates/templates/default/photo/album.html	Fri Apr 26 12:12:24 2019 +0200
+++ b/sat_templates/templates/default/photo/album.html	Sat Apr 27 11:31:04 2019 +0200
@@ -9,7 +9,9 @@
         {% if file.type == C.FILE_TYPE_FILE %}
             <div class="album__item">
                 <div class="album__vignette">
-                    <img src="{{file.thumb_url}}" class="album__thumbnail" alt="{{file.name}}">
+                    <a href="{{file.url}}">
+                        <img src="{{file.thumb_url}}" class="album__thumbnail" alt="{{file.name}}">
+                    </a>
                 </div>
                 {% if file.comments_url is defined %}
                     <span class='album__comments-bar' onclick="clicked_mh_fix('{{'comments_panel'|next_gidx}}')">