Mercurial > libervia-templates
annotate sat_templates/templates/bulma/photo/item.html @ 254:8411a274448e
bulma (css): new `is-not-selectable` class
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 01 Aug 2020 17:01:31 +0200 |
parents | a0e889d73bad |
children | 1a68c078a233 |
rev | line source |
---|---|
243
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
1 <div class="column is-4 item" data-item='{{file|tojson}}'> |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
2 <div class="card x-is-hoverable"> |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
3 <div class="card-image is-photo-thumbnail-container is-flex has-items-centered has-background-light"> |
252 | 4 <a href="{{file.url}}" class="is-wrapping photo_thumb_click"> |
243
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
5 <img class="is-photo-thumbnail" src="{{file.thumb_url}}" alt="{{file.name}}"> |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
6 </a> |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
7 </div> |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
8 <div class="card-content" onclick="clicked_mh_fix('{{'comments_panel'|next_gidx}}')"> |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
9 <div class="level"> |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
10 <div class="level-left"> |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
11 <div class="level-item is-size-7 x-is-hoverable-primary action_delete"> |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
12 {{ icon('trash-empty', cls='icon is-small') }} |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
13 </div> |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
14 </div> |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
15 <div class="level-right"> |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
16 <div class="level-item is-size-7"> |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
17 {% if file.comments_url is defined %} |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
18 {% if file.comments_count %} |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
19 <span class='comments__count'>{{file.comments_count}} </span> |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
20 {% endif %} |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
21 {{ icon('comment-empty', cls='icon is-small') }} |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
22 {% endif %} |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
23 </div> |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
24 </div> |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
25 </div> |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
26 </div> |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
27 </div> |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
28 {% if uploading %} |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
29 <progress class="progress is-info mt-4 has-background-white" value="0" max="100">0%</progress> |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
30 {% else %} |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
31 <div id='{{'comments_panel'|cur_gidx}}' class="mt-4 panel-drawer"> |
247
40fccd3b7cf0
updated code to handle blog items following data structure change in backend/Libervia
Goffi <goffi@goffi.org>
parents:
243
diff
changeset
|
32 {% if file.comments %} |
40fccd3b7cf0
updated code to handle blog items following data structure change in backend/Libervia
Goffi <goffi@goffi.org>
parents:
243
diff
changeset
|
33 {{ blog.show_items(file.comments['items'], expanded=true, dates_fmt='relative') }} |
40fccd3b7cf0
updated code to handle blog items following data structure change in backend/Libervia
Goffi <goffi@goffi.org>
parents:
243
diff
changeset
|
34 {% endif %} |
243
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
35 <div class="comment_post mt-4"> |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
36 {{- textbox.comment_or_login(service=file.comments_service, node=file.comments_node) -}} |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
37 </div> |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
38 </div> |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
39 {% endif %} |
2b8d18a9df00
bulma (photo/album): change for dynamic content:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
40 </div> |