Mercurial > libervia-templates
annotate sat_templates/templates/bulma/event/overview.html @ 368:68c6f30aecab
bulma (chat/select): put the search at top and replace technical terms:
the search bar is now at the top, and technical term ("JID") has been replaced to make it
more user-friendly.
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 06 Jul 2023 11:38:51 +0200 |
parents | 6c21a9857e08 |
children |
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"> | |
326
f3c8a6af4ee2
bulma (events/overview): show event date and remaining time
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
16 <div class="message is-warning"> |
230 | 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 | |
332
3db3509cbad1
bulma: fix items/pagination ordering in various places following ordering fix in Libervia/SàT Pubsub
Goffi <goffi@goffi.org>
parents:
326
diff
changeset
|
37 {% call(part, interest) block.interests_grid(events|reverse, 'calendar') %} |
326
f3c8a6af4ee2
bulma (events/overview): show event date and remaining time
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
38 {% if part == "header-title" %} |
f3c8a6af4ee2
bulma (events/overview): show event date and remaining time
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
39 <a href="{{interest.url}}"> |
357
6c21a9857e08
bulma (event/overview): quick fix of the template following backend changes with events
Goffi <goffi@goffi.org>
parents:
332
diff
changeset
|
40 <span class="tag is-medium is-rounded {{ 'is-light' if interest.start is in_the_past else 'is-info' }}"> |
6c21a9857e08
bulma (event/overview): quick fix of the template following backend changes with events
Goffi <goffi@goffi.org>
parents:
332
diff
changeset
|
41 {{interest.start|date_fmt("full", date_only=true)}} |
326
f3c8a6af4ee2
bulma (events/overview): show event date and remaining time
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
42 </span> |
f3c8a6af4ee2
bulma (events/overview): show event date and remaining time
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
43 </a> |
f3c8a6af4ee2
bulma (events/overview): show event date and remaining time
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
44 {% elif part == "content" %} |
f3c8a6af4ee2
bulma (events/overview): show event date and remaining time
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
45 <a href="{{interest.url}}"> |
357
6c21a9857e08
bulma (event/overview): quick fix of the template following backend changes with events
Goffi <goffi@goffi.org>
parents:
332
diff
changeset
|
46 <div><em>{{ interest.name[""]|default(_("unnamed")) }}</em></div> |
326
f3c8a6af4ee2
bulma (events/overview): show event date and remaining time
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
47 </a> |
f3c8a6af4ee2
bulma (events/overview): show event date and remaining time
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
48 <a href="{{interest.url}}"> |
357
6c21a9857e08
bulma (event/overview): quick fix of the template following backend changes with events
Goffi <goffi@goffi.org>
parents:
332
diff
changeset
|
49 <div class="has-text-weight-semibold {{ 'has-text-grey' if interest.start is in_the_past else 'has-text-black' }}"> |
6c21a9857e08
bulma (event/overview): quick fix of the template following backend changes with events
Goffi <goffi@goffi.org>
parents:
332
diff
changeset
|
50 {{interest.start|date_fmt("relative")}} |
326
f3c8a6af4ee2
bulma (events/overview): show event date and remaining time
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
51 </div> |
f3c8a6af4ee2
bulma (events/overview): show event date and remaining time
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
52 </a> |
f3c8a6af4ee2
bulma (events/overview): show event date and remaining time
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
53 {% endif %} |
f3c8a6af4ee2
bulma (events/overview): show event date and remaining time
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
54 |
f3c8a6af4ee2
bulma (events/overview): show event date and remaining time
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
55 {% endcall %} |
230 | 56 |
57 {% endif %} | |
58 </section> | |
59 {% endblock body %} |