Mercurial > libervia-templates
comparison default/file/overview.html @ 122:9d95b58200df
file: files handling first draft:
file/overview.html generate a simple files/directories listing
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 11 Mar 2018 19:21:46 +0100 |
parents | |
children | 44b838bcc0d6 |
comparison
equal
deleted
inserted
replaced
121:ab2dd835e597 | 122:9d95b58200df |
---|---|
1 {% extends 'base/base.html' %} | |
2 | |
3 {% block body %} | |
4 {{ icon_defs('level-up', 'doc','folder-open-empty') }} | |
5 <ul id="files"> | |
6 {% if parent_url is defined %} | |
7 <li class="file"> | |
8 <a href="{{ parent_url }}"> | |
9 {{ icon('level-up', cls='file__icon') }} | |
10 {% trans %}parent dir{% endtrans %} | |
11 </a> | |
12 </li> | |
13 {% endif %} | |
14 | |
15 {% for file in files_data %} | |
16 {% if file.type == C.FILE_TYPE_DIRECTORY %} | |
17 <li class="file file_{{file.type}}"> | |
18 <a href="{{file.url}}"> | |
19 {{ icon('folder-open-empty', cls='file__icon') }} | |
20 {{ file.name }} | |
21 </a> | |
22 </li> | |
23 {% else %} | |
24 <li class="file file_{{file.type}}"> | |
25 <a href="{{file.url}}"> | |
26 {{ icon('doc', cls='file__icon icon--soft') }} | |
27 {{ file.name }} | |
28 </a> | |
29 </li> | |
30 {% endif %} | |
31 {% endfor %} | |
32 </ul> | |
33 {% endblock body %} |