comparison sat_templates/templates/bulma/event/overview.html @ 357:6c21a9857e08

bulma (event/overview): quick fix of the template following backend changes with events
author Goffi <goffi@goffi.org>
date Thu, 30 Mar 2023 17:05:13 +0200
parents 3db3509cbad1
children
comparison
equal deleted inserted replaced
356:e3e11ced9f8f 357:6c21a9857e08
35 </div> 35 </div>
36 36
37 {% call(part, interest) block.interests_grid(events|reverse, 'calendar') %} 37 {% call(part, interest) block.interests_grid(events|reverse, 'calendar') %}
38 {% if part == "header-title" %} 38 {% if part == "header-title" %}
39 <a href="{{interest.url}}"> 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' }}"> 40 <span class="tag is-medium is-rounded {{ 'is-light' if interest.start is in_the_past else 'is-info' }}">
41 {{interest.date|date_fmt("full", date_only=true)}} 41 {{interest.start|date_fmt("full", date_only=true)}}
42 </span> 42 </span>
43 </a> 43 </a>
44 {% elif part == "content" %} 44 {% elif part == "content" %}
45 <a href="{{interest.url}}"> 45 <a href="{{interest.url}}">
46 <div><em>{{ interest.name|default(_("unnamed")) }}</em></div> 46 <div><em>{{ interest.name[""]|default(_("unnamed")) }}</em></div>
47 </a> 47 </a>
48 <a href="{{interest.url}}"> 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' }}"> 49 <div class="has-text-weight-semibold {{ 'has-text-grey' if interest.start is in_the_past else 'has-text-black' }}">
50 {{interest.date|date_fmt("relative")}} 50 {{interest.start|date_fmt("relative")}}
51 </div> 51 </div>
52 </a> 52 </a>
53 {% endif %} 53 {% endif %}
54 54
55 {% endcall %} 55 {% endcall %}