Mercurial > libervia-templates
comparison 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 |
comparison
equal
deleted
inserted
replaced
191:687658e83a2b | 192:db2e11c45082 |
---|---|
7 <div class="album"> | 7 <div class="album"> |
8 {% for file in files_data %} | 8 {% for file in files_data %} |
9 {% if file.type == C.FILE_TYPE_FILE %} | 9 {% if file.type == C.FILE_TYPE_FILE %} |
10 <div class="album__item"> | 10 <div class="album__item"> |
11 <div class="album__vignette"> | 11 <div class="album__vignette"> |
12 <img src="{{file.thumb_url}}" class="album__thumbnail" alt="{{file.name}}"> | 12 <a href="{{file.url}}"> |
13 <img src="{{file.thumb_url}}" class="album__thumbnail" alt="{{file.name}}"> | |
14 </a> | |
13 </div> | 15 </div> |
14 {% if file.comments_url is defined %} | 16 {% if file.comments_url is defined %} |
15 <span class='album__comments-bar' onclick="clicked_mh_fix('{{'comments_panel'|next_gidx}}')"> | 17 <span class='album__comments-bar' onclick="clicked_mh_fix('{{'comments_panel'|next_gidx}}')"> |
16 {% trans %}comments{% endtrans %} | 18 {% trans %}comments{% endtrans %} |
17 {% if file.comments_count %} | 19 {% if file.comments_count %} |