Debian Codegraph @

sat_templates/templates/bulma/photo/item.html

raw symbols SCIP
1 <div class="column is-4 item" data-item='{{file|tojson}}'>
2 <div class="card x-is-hoverable">
3 <div class="card-image is-photo-thumbnail-container is-flex has-items-centered has-background-light">
4 {% if file.mime_type[:5] == 'video' %}
5 <a href="{{file.url}}" class="is-video-thumbnail-wrapper is-wrapping photo_thumb_click">
6 <img class="is-photo-thumbnail" src="{{file.thumb_url}}">
7 <div class="media_overlay_play is-flex has-items-centered">
8 <span class="icon">
9 <i class="icon-play-circled"></i>
10 </span>
11 </div>
12 </a>
13 {% else %}
14 <a href="{{file.url}}" class="is-wrapping photo_thumb_click">
15 <img class="is-photo-thumbnail" src="{{file.thumb_url}}" alt="{{file.name}}">
16 </a>
17 {% endif %}
18 </div>
19 <div class="card-content" onclick="clicked_mh_fix('{{'comments_panel'|next_gidx}}')">
20 <div class="level">
21 <div class="level-left">
22 {% if file.affiliation == "owner" or not file.affiliation and directory_affiliation == "owner" %}
23 <div class="level-item is-size-7 x-is-hoverable-primary action_delete">
24 {{ icon('trash-empty', cls='icon is-small') }}
25 </div>
26 {% endif %}
27 {% if directory_affiliation == "owner" %}
28 <div class="level-item is-size-7 x-is-hoverable-primary action_cover">
29 {{ icon('picture', cls='icon is-small') }}
30 </div>
31 {% endif %}
32 </div>
33 <div class="level-right">
34 <div class="level-item is-size-7">
35 {% if file.comments_url is defined %}
36 {% if file.comments_count %}
37 <span class='comments__count'>{{file.comments_count}} </span>
38 {% endif %}
39 {{ icon('comment-empty', cls='icon is-small') }}
40 {% endif %}
41 </div>
42 </div>
43 </div>
44 </div>
45 </div>
46 {% if uploading %}
47 <progress class="progress is-info mt-4 has-background-white" value="0" max="100">0%</progress>
48 {% else %}
49 <div id='{{'comments_panel'|cur_gidx}}' class="mt-4 panel-drawer">
50 {% if file.comments %}
51 {{ blog.show_items(file.comments['items'], expanded=true, dates_fmt='relative') }}
52 {% endif %}
53 <div class="comment_post mt-4">
54 {{- textbox.comment_or_login(service=file.comments_service, node=file.comments_node) -}}
55 </div>
56 </div>
57 {% endif %}
58 </div>