Debian Codegraph @

sat_templates/templates/bulma/photo/album.html

raw symbols SCIP
1 {% set loading_screen = true %}
2 {% extends 'base/base.html' %}
3 {% import 'components/avatar.html' as avatar with context %}
4 {% import 'input/textbox.html' as textbox with context %}
5 {% import 'blog/macros.html' as blog with context %}
6
7 {% block body %}
8 {{ icon_defs('comment-empty', 'trash-empty', 'picture') }}
9
10 {% if directory_affiliation == 'owner' %}
11 <div class="content has-items-centered is-flex my-4">
12 {{ component.action_button("#", label=_("manage invitations"), icon="group", id="button_manage") }}
13 </div>
14 {% else %}
15 <article id="hint" class="message is-info my-4">
16 <div class="message-header">
17 <p>{% trans %}hint{% endtrans %}</p>
18 <button class="delete click_to_delete" aria-label="delete"></button>
19 </div>
20 <div class="message-body">
21 {% trans %}You can click on any picture to start a slideshow{% endtrans %}
22 </div>
23 </article>
24 {% endif %}
25 <div id="album_items" class="columns album is-multiline mt-4">
26 {% set ns_photos = namespace(empty=true) %}
27 {% for file in files_data %}
28 {% if file.type == C.FILE_TYPE_FILE %}
29 {% set ns_photos.empty = false %}
30 {% include 'photo/item.html' %}
31 {% endif %}
32 {% endfor %}
33 </div>
34
35 {% if directory_affiliation == 'owner' %}
36 <div id="file_drop" class="box column has-border-dashed has-border-grey-light is-hidden-touch">
37 <div class="has-text-weight-bold has-text-centered has-text-grey-light is-size-3">
38 {% trans %}
39 Drop photos here
40 {% endtrans %}
41 </div>
42 </div>
43 <h2 class="title is-4 has-text-centered is-hidden-touch">OR</h2>
44 <div class="file is-large is-boxed is-centered">
45 <label class="file-label">
46 <input id="file_input" class="file-input" type="file" accept="image/*,video/*" name="photos_upload" multiple>
47 <span class="file-cta">
48 <span class="file-icon is-marginless">
49 <i class="icon-upload"></i>
50 </span>
51 <span class="file-label">
52 {% trans %}
53 Select photos to upload…
54 {% endtrans %}
55 </span>
56 </span>
57 </label>
58 </div>
59 <div id="list" class="column"></div>
60 {% endif %}
61 {% endblock body %}