Mercurial > libervia-templates
comparison sat_templates/default/file/overview.html @ 147:33c7ce833d3f
install: setup.py fix + moved "default" dir in a "sat_templates" dir:
the merge request at https://bugs.goffi.org/mr/view/3 was a good basis, but not fully working ("default" dir was removed), this patch fixes it, and do some improvments:
- moved "default" in "sat_templates" dir, which correspond to the python module, so it can be found easily from python
- added VERSION, and mercurial hash detection, in the same way as for Cagou and backend
- slight modification of classifiers
- replaces tabs coming from MR by spaces
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 02 Jun 2018 17:25:43 +0200 |
parents | default/file/overview.html@14a4c6bb4443 |
children |
comparison
equal
deleted
inserted
replaced
146:7dc00829c32f | 147:33c7ce833d3f |
---|---|
1 {% extends 'base/base.html' %} | |
2 | |
3 {% block body %} | |
4 {{ icon_defs('level-up', 'doc','folder-open-empty', 'comment-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 {% 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 %} | |
31 {{ file.name }} | |
32 </a> | |
33 </li> | |
34 {% endif %} | |
35 {% endfor %} | |
36 </ul> | |
37 {% if not files_data %} | |
38 <p class="message--info">{% trans %}No files are shared in this directory!{% endtrans %}</p> | |
39 {% endif%} | |
40 {% endblock body %} |