From f369d52a2f5956cc644885f83f32360bb0ad6f23 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 31 Jan 2024 23:25:32 +0100 Subject: [PATCH] Cleanup session view template --- Resources/views/session/view.html.twig | 84 ++++++++++++++------------ 1 file changed, 44 insertions(+), 40 deletions(-) diff --git a/Resources/views/session/view.html.twig b/Resources/views/session/view.html.twig index 9492fbe..1466a96 100644 --- a/Resources/views/session/view.html.twig +++ b/Resources/views/session/view.html.twig @@ -205,49 +205,53 @@

{% trans %}Candidates{% endtrans %}

-
- {% if session.applications is defined and session.applications %} - {% for application in session.applications %} -
- {% if application.user.id == 1 and application.user.title|slug == 'milonga-raphael' %} -

{{ application.user.title }}

- {% else %} -

{{ application.user.title }}

- {% endif %} -
-
{% trans %}Score{% endtrans %}
-
- {% if application.score is null %} - {% trans %}None{% endtrans %} - {% else %} - {{ application.score }}
- {% endif %} -
-
-
{% trans %}Created{% endtrans %}
-
{{ application.created|intldate('long', 'medium') }}
-
-
-
{% trans %}Updated{% endtrans %}
-
{{ application.updated|intldate('long', 'medium') }}
-
-
-
{% trans %}Canceled{% endtrans %}
-
- {% if application.canceled is null %} - {% trans %}None{% endtrans %} +
+
+ {% if session.applications is defined and session.applications %} + {% for application in session.applications %} +
+
+ {% if application.user.id == 1 and application.user.title|slug == 'milonga-raphael' %} +

{{ application.user.title }}

{% else %} - {{ application.canceled|intldate('long', 'medium') }} +

{{ application.user.title }}

{% endif %} -
-
+ +
+
{% trans %}Score{% endtrans %}
+
+ {% if application.score is null %} + {% trans %}None{% endtrans %} + {% else %} + {{ application.score }}
+ {% endif %} +
+
+
{% trans %}Created{% endtrans %}
+
{{ application.created|intldate('long', 'medium') }}
+
+
+
{% trans %}Updated{% endtrans %}
+
{{ application.updated|intldate('long', 'medium') }}
+
+
+
{% trans %}Canceled{% endtrans %}
+
+ {% if application.canceled is null %} + {% trans %}None{% endtrans %} + {% else %} + {{ application.canceled|intldate('long', 'medium') }} + {% endif %} +
+
+
+ {% endfor %} + {% else %} +
+ {% trans %}None{% endtrans %}
- {% endfor %} - {% else %} -
- {% trans %}None{% endtrans %} -
- {% endif %} + {% endif %} +
{% endif %} -- 2.41.1