diff 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
line wrap: on
line diff
--- a/sat_templates/templates/bulma/event/overview.html	Thu Mar 30 17:03:57 2023 +0200
+++ b/sat_templates/templates/bulma/event/overview.html	Thu Mar 30 17:05:13 2023 +0200
@@ -37,17 +37,17 @@
         {% call(part, interest) block.interests_grid(events|reverse, 'calendar') %}
             {% if part == "header-title" %}
                 <a href="{{interest.url}}">
-                    <span class="tag is-medium is-rounded {{ 'is-light' if interest.date is in_the_past else 'is-info' }}">
-                        {{interest.date|date_fmt("full", date_only=true)}}
+                    <span class="tag is-medium is-rounded {{ 'is-light' if interest.start is in_the_past else 'is-info' }}">
+                        {{interest.start|date_fmt("full", date_only=true)}}
                     </span>
                 </a>
             {% elif part == "content" %}
                 <a href="{{interest.url}}">
-                    <div><em>{{ interest.name|default(_("unnamed")) }}</em></div>
+                    <div><em>{{ interest.name[""]|default(_("unnamed")) }}</em></div>
                 </a>
                 <a href="{{interest.url}}">
-                    <div class="has-text-weight-semibold {{ 'has-text-grey' if interest.date is in_the_past else 'has-text-black' }}">
-                        {{interest.date|date_fmt("relative")}}
+                    <div class="has-text-weight-semibold {{ 'has-text-grey' if interest.start is in_the_past else 'has-text-black' }}">
+                        {{interest.start|date_fmt("relative")}}
                     </div>
                 </a>
             {% endif %}