Mercurial > libervia-templates
comparison default/file/overview.html @ 123:44b838bcc0d6
file/overview: display tumbnails when available
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 14 Mar 2018 08:43:30 +0100 |
parents | 9d95b58200df |
children | 11e729a7d8e9 |
comparison
equal
deleted
inserted
replaced
122:9d95b58200df | 123:44b838bcc0d6 |
---|---|
21 </a> | 21 </a> |
22 </li> | 22 </li> |
23 {% else %} | 23 {% else %} |
24 <li class="file file_{{file.type}}"> | 24 <li class="file file_{{file.type}}"> |
25 <a href="{{file.url}}"> | 25 <a href="{{file.url}}"> |
26 {{ icon('doc', cls='file__icon icon--soft') }} | 26 {% if file.thumb_url is defined %} |
27 <img src="{{file.thumb_url}}" class="file__thumbnail" alt="{{file.name}}"> | |
28 {% else %} | |
29 {{ icon('doc', cls='file__icon icon--soft') }} | |
30 {% endif %} | |
27 {{ file.name }} | 31 {{ file.name }} |
28 </a> | 32 </a> |
29 </li> | 33 </li> |
30 {% endif %} | 34 {% endif %} |
31 {% endfor %} | 35 {% endfor %} |