# HG changeset patch # User Goffi # Date 1619887533 -7200 # Node ID f3c8a6af4ee21ac5e42fb720f313eb98ed35d708 # Parent 8c779fb4638483b40453ab49326d0bdf2c2f062c bulma (events/overview): show event date and remaining time diff -r 8c779fb46384 -r f3c8a6af4ee2 sat_templates/templates/bulma/event/overview.html --- a/sat_templates/templates/bulma/event/overview.html Sat May 01 18:44:47 2021 +0200 +++ b/sat_templates/templates/bulma/event/overview.html Sat May 01 18:45:33 2021 +0200 @@ -13,7 +13,7 @@ {{ icon_defs('calendar') }}
-
+
{% trans %}There is not events discovery yet, this will come in the future.{% endtrans %}
@@ -34,7 +34,25 @@
- {{block.interests_grid(events, 'calendar')}} + {% call(part, interest) block.interests_grid(events, 'calendar') %} + {% if part == "header-title" %} + + + {{interest.date|date_fmt("full", date_only=true)}} + + + {% elif part == "content" %} + +
{{ interest.name|default(_("unnamed")) }}
+
+ +
+ {{interest.date|date_fmt("relative")}} +
+
+ {% endif %} + + {% endcall %} {% endif %}