Mercurial > libervia-templates
annotate sat_templates/templates/default/file/overview.html @ 164:e9f0a4215e46
multi-sites handling (moved templates to "templates" sub-directory) + noscript styles handling.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 10 Sep 2018 08:53:33 +0200 |
parents | sat_templates/default/file/overview.html@33c7ce833d3f |
children |
rev | line source |
---|---|
122 | 1 {% extends 'base/base.html' %} |
2 | |
3 {% block body %} | |
124
11e729a7d8e9
photo: photos handling, first draft:
Goffi <goffi@goffi.org>
parents:
123
diff
changeset
|
4 {{ icon_defs('level-up', 'doc','folder-open-empty', 'comment-empty') }} |
122 | 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}}"> | |
123
44b838bcc0d6
file/overview: display tumbnails when available
Goffi <goffi@goffi.org>
parents:
122
diff
changeset
|
26 {% if file.thumb_url is defined %} |
44b838bcc0d6
file/overview: display tumbnails when available
Goffi <goffi@goffi.org>
parents:
122
diff
changeset
|
27 <img src="{{file.thumb_url}}" class="file__thumbnail" alt="{{file.name}}"> |
44b838bcc0d6
file/overview: display tumbnails when available
Goffi <goffi@goffi.org>
parents:
122
diff
changeset
|
28 {% else %} |
44b838bcc0d6
file/overview: display tumbnails when available
Goffi <goffi@goffi.org>
parents:
122
diff
changeset
|
29 {{ icon('doc', cls='file__icon icon--soft') }} |
44b838bcc0d6
file/overview: display tumbnails when available
Goffi <goffi@goffi.org>
parents:
122
diff
changeset
|
30 {% endif %} |
122 | 31 {{ file.name }} |
32 </a> | |
33 </li> | |
34 {% endif %} | |
35 {% endfor %} | |
36 </ul> | |
126
14a4c6bb4443
file (overview): display a message when directory is empty
Goffi <goffi@goffi.org>
parents:
124
diff
changeset
|
37 {% if not files_data %} |
14a4c6bb4443
file (overview): display a message when directory is empty
Goffi <goffi@goffi.org>
parents:
124
diff
changeset
|
38 <p class="message--info">{% trans %}No files are shared in this directory!{% endtrans %}</p> |
14a4c6bb4443
file (overview): display a message when directory is empty
Goffi <goffi@goffi.org>
parents:
124
diff
changeset
|
39 {% endif%} |
122 | 40 {% endblock body %} |