comparison sat_templates/templates/bulma/event/overview.html @ 326:f3c8a6af4ee2

bulma (events/overview): show event date and remaining time
author Goffi <goffi@goffi.org>
date Sat, 01 May 2021 18:45:33 +0200
parents 1c330913ff13
children 3db3509cbad1
comparison
equal deleted inserted replaced
325:8c779fb46384 326:f3c8a6af4ee2
11 11
12 {% block body %} 12 {% block body %}
13 {{ icon_defs('calendar') }} 13 {{ icon_defs('calendar') }}
14 14
15 <section class="section"> 15 <section class="section">
16 <div class="message is-info"> 16 <div class="message is-warning">
17 <div class="message-body"> 17 <div class="message-body">
18 {% trans %}There is not events discovery yet, this will come in the future.{% endtrans %} 18 {% trans %}There is not events discovery yet, this will come in the future.{% endtrans %}
19 </div> 19 </div>
20 </div> 20 </div>
21 21
32 You have currently {{nb_events}} events in your personal list 32 You have currently {{nb_events}} events in your personal list
33 {% endtrans %} 33 {% endtrans %}
34 </div> 34 </div>
35 </div> 35 </div>
36 36
37 {{block.interests_grid(events, 'calendar')}} 37 {% call(part, interest) block.interests_grid(events, 'calendar') %}
38 {% if part == "header-title" %}
39 <a href="{{interest.url}}">
40 <span class="tag is-medium is-rounded {{ 'is-light' if interest.date is in_the_past else 'is-info' }}">
41 {{interest.date|date_fmt("full", date_only=true)}}
42 </span>
43 </a>
44 {% elif part == "content" %}
45 <a href="{{interest.url}}">
46 <div><em>{{ interest.name|default(_("unnamed")) }}</em></div>
47 </a>
48 <a href="{{interest.url}}">
49 <div class="has-text-weight-semibold {{ 'has-text-grey' if interest.date is in_the_past else 'has-text-black' }}">
50 {{interest.date|date_fmt("relative")}}
51 </div>
52 </a>
53 {% endif %}
54
55 {% endcall %}
38 56
39 {% endif %} 57 {% endif %}
40 </section> 58 </section>
41 {% endblock body %} 59 {% endblock body %}