Mercurial > libervia-templates
annotate sat_templates/templates/bulma/event/overview.html @ 300:2a697b1376f1
bulma (components/block): disco entities's `icon_name` is used as icon when available:
otherwide, `default_icon_name` is used.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 20 Feb 2021 13:37:19 +0100 |
parents | 1c330913ff13 |
children | f3c8a6af4ee2 |
rev | line source |
---|---|
230 | 1 {# overview of current events |
2 | |
298
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
230
diff
changeset
|
3 @variable item(xmlui_item): item to display |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
230
diff
changeset
|
4 @variable comments(data_object.BlogItems): comments of the item |
230 | 5 @variable comments_service(unicode): service for adding comments |
6 @variable comments_node(unicode): node for adding comments | |
7 #} | |
8 | |
9 {% if not embedded %}{% extends 'base/base.html' %}{% endif %} | |
10 {% import 'components/block.html' as block with context %} | |
11 | |
12 {% block body %} | |
13 {{ icon_defs('calendar') }} | |
14 | |
15 <section class="section"> | |
16 <div class="message is-info"> | |
17 <div class="message-body"> | |
18 {% trans %}There is not events discovery yet, this will come in the future.{% endtrans %} | |
19 </div> | |
20 </div> | |
21 | |
22 <div class="content has-items-centered is-flex"> | |
23 {{ component.action_button(url_event_new) }} | |
24 </div> | |
25 | |
26 {% if events is defined %} | |
27 <div class="message"> | |
28 <div class="message-body"> | |
29 {% trans nb_events=events|length%} | |
30 You have currently {{nb_events}} event in your personal list | |
31 {% pluralize %} | |
32 You have currently {{nb_events}} events in your personal list | |
33 {% endtrans %} | |
34 </div> | |
35 </div> | |
36 | |
37 {{block.interests_grid(events, 'calendar')}} | |
38 | |
39 {% endif %} | |
40 </section> | |
41 {% endblock body %} |