Mercurial > libervia-templates
changeset 192:db2e11c45082
photo (album): vignettes are now clickable
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 27 Apr 2019 11:31:04 +0200 (2019-04-27) |
parents | 687658e83a2b |
children | f1188ce8dd17 |
files | sat_templates/templates/default/photo/album.html |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
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}}')">