From 9ee5b69de7d3df35b3af23382d49ba595f0de204 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Sat, 28 Aug 2021 10:25:31 +0200 Subject: [PATCH 1/1] New page description schema Add rate and hat infos --- Resources/views/session/view.html.twig | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Resources/views/session/view.html.twig b/Resources/views/session/view.html.twig index fea0072..02df6db 100644 --- a/Resources/views/session/view.html.twig +++ b/Resources/views/session/view.html.twig @@ -9,7 +9,7 @@ {% endif %} {{ session.location.at }} -

{{ page.description }}

+

{{ description }}

@@ -61,6 +61,19 @@
{{ 'Consult %pseudonym% profile'|trans({'%pseudonym%': session.application.user.title}) }}
{% endif %} + {% if session.snippet.rate is defined and session.snippet.rate %} + {% if session.snippet.hat is defined and session.snippet.hat %} +
+
{% trans %}Contribution{% endtrans %}
+
{% if session.snippet.rate == 0 %}{% trans %}To the hat, to cover the costs: talc, electricity, bicycle, server{% endtrans %}{% else %}{{ 'To the hat, ideally %rate% €, to cover the costs: talc, electricity, bicycle, server'|trans({'%rate%': session.snippet.rate}) }}{% endif %}
+
+ {% else %} +
+
{% trans %}Rate{% endtrans %}
+
{% if session.snippet.rate == 0 %}{% trans %}Free{% endtrans %}{% else %}{{ session.snippet.rate }} €{% endif %}
+
+ {% endif %} + {% endif %}

{% trans %}Schedule{% endtrans %}

-- 2.41.1