From: Raphaƫl Gertz Date: Wed, 31 Jan 2024 22:25:32 +0000 (+0100) Subject: Cleanup session view template X-Git-Tag: 0.3.0~128 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/f369d52a2f5956cc644885f83f32360bb0ad6f23?ds=inline;hp=c435a53cb44704beddd9d5dbb668b0e2781cf91c Cleanup session view template --- 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 %}