Mercurial > libervia-templates
comparison sat_templates/templates/bulma/file/overview.html @ 230:0e69b5843c2f
theme: bulma theme first draft:
This theme uses the Bulma CSS framework, Brython to handle the menu on touch devices, and
Sass to customize Bulma. CSS default fallbacks are disabled as Bulma uses its own naming
conventions, and default fallbacks would lead to hard to debug conflicts.
`common.js` has been slightly improved to handle custom classed in `tab_select`
The theme is not complete yet, but it is functional.
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 19 May 2020 00:02:34 +0200 |
parents | |
children | dc83f45625b3 |
comparison
equal
deleted
inserted
replaced
229:739c3e6999fa | 230:0e69b5843c2f |
---|---|
1 {% extends 'base/base.html' %} | |
2 | |
3 {% block body %} | |
4 {{ icon_defs('level-up', 'doc','folder-open-empty', 'comment-empty') }} | |
5 <section class="section"> | |
6 <div class="columns files is-multiline is-mobile"> | |
7 {% if parent_url is defined %} | |
8 <div class="column is-2-desktop is-4-touch file"> | |
9 <div class="card"> | |
10 <a href="{{ parent_url }}"> | |
11 <div class="card-image has-text-centered"> | |
12 {{ icon('level-up', cls='image is-64x64 is-inline-block') }} | |
13 </div> | |
14 <div class='card-content has-text-centered is-paddingless'> | |
15 <span>{% trans %}parent dir{% endtrans %}</span> | |
16 </div> | |
17 </a> | |
18 </div> | |
19 </div> | |
20 {% endif %} | |
21 | |
22 {% for file in files_data %} | |
23 {% if file.type == C.FILE_TYPE_DIRECTORY %} | |
24 <div class="column is-2-desktop is-4-touch file file_{{file.type}}"> | |
25 <div class="card"> | |
26 <a href="{{file.url}}"> | |
27 <div class="card-image has-text-centered"> | |
28 {{ icon('folder-open-empty', cls='image is-64x64 is-inline-block') }} | |
29 </div> | |
30 <div class='card-content has-text-centered has-text-shortenable is-paddingless'> | |
31 <span>{{ file.name }}</span> | |
32 </div> | |
33 </a> | |
34 </div> | |
35 </div> | |
36 {% else %} | |
37 <div class="column is-2-desktop is-4-touch file file_{{file.type}}"> | |
38 <div class="card"> | |
39 <a href="{{file.url}}"> | |
40 <div class="card-image has-text-centered"> | |
41 {% if file.thumb_url is defined %} | |
42 <img src="{{file.thumb_url}}" class="image is-64x64 is-inline-block" alt="{{file.name}}"> | |
43 {% else %} | |
44 {{ icon('doc', cls='image is-64x64 is-inline-block') }} | |
45 {% endif %} | |
46 </div> | |
47 <div class='card-content has-text-centered has-text-shortenable is-paddingless'> | |
48 <span>{{ file.name }}</span> | |
49 </div> | |
50 </a> | |
51 </div> | |
52 </div> | |
53 {% endif %} | |
54 {% endfor %} | |
55 </div> | |
56 </section> | |
57 {% if not files_data %} | |
58 <article class="message has-text-centered"> | |
59 <div class="message-body"> | |
60 {% trans %}No files are shared in this directory!{% endtrans %} | |
61 </div> | |
62 </article> | |
63 {% endif%} | |
64 {% endblock body %} |