X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/534677f1a55761375b6d4c61e78be73828918035..96f24116db99c7358f321d7d5b77f5806a02c82e:/Resources/views/session/view.html.twig diff --git a/Resources/views/session/view.html.twig b/Resources/views/session/view.html.twig index c8b78b1..02df6db 100644 --- a/Resources/views/session/view.html.twig +++ b/Resources/views/session/view.html.twig @@ -1,12 +1,18 @@ {% extends '@RapsysAir/body.html.twig' %} {% block content %} -
-

- {{ session.title }} - {{ session.location.at }} -

+
+
+

+ {{ session.title }} + {% if session.application.id is defined and session.application.id %} + {{ session.application.user.by }} + {% endif %} + {{ session.location.at }} +

+

{{ description }}

+
-
+

{% trans %}Organizer{% endtrans %}

@@ -15,7 +21,7 @@ {% if session.application is null %} {% trans %}None{% endtrans %} {% else %} - {{ session.application.user.title }} + {{ session.application.user.title }} {% endif %}
@@ -25,42 +31,71 @@
{{ session.snippet.description|striptags|markdown_to_html }}
{% endif %} - {% if session.application.user.donation is defined and session.application.user.donation %} + {% if session.snippet.class is defined and session.snippet.class %} +
+
{% trans %}Class{% endtrans %}
+
{{ session.snippet.class|striptags|markdown_to_html }}
+
+ {% endif %} + {% if session.snippet.contact is defined and session.snippet.contact %} +
+
{% trans %}Contact{% endtrans %}
+
{{ 'Send a message to %pseudonym%'|trans({'%pseudonym%': session.application.user.title}) }}
+
+ {% endif %} + {% if session.snippet.donate is defined and session.snippet.donate %}
-
{% trans %}Donation{% endtrans %}
-
{{ 'Contribute to %title%'|trans({'%title%': session.application.user.title}) }}
+
{% trans %}Donate{% endtrans %}
+
{{ 'Donate to %pseudonym%'|trans({'%pseudonym%': session.application.user.title}) }}
{% endif %} - {% if session.application.user.site is defined and session.application.user.site %} + {% if session.snippet.link is defined and session.snippet.link %}
-
{% trans %}Website{% endtrans %}
-
{{ 'Website of %title%'|trans({'%title%': session.application.user.title}) }}
+
{% trans %}Link{% endtrans %}
+
{{ 'Link to %pseudonym%'|trans({'%pseudonym%': session.application.user.title}) }}
{% endif %} + {% if session.snippet.profile is defined and session.snippet.profile %} +
+
{% trans %}Social network{% endtrans %}
+
{{ '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 %}

-
{% trans %}Slot{% endtrans %}
-
{{ session.slot.title }}
+
{% trans %}Date{% endtrans %}
+
{{ session.start|localizeddate('long', 'none') }}
{% trans %}Start{% endtrans %}
-
{{ session.start.format('Y-m-d H:i:s') }}
+
{{ session.start|localizeddate('none', 'medium') }}
{% trans %}Stop{% endtrans %}
-
- {% if session.start.format('Y-m-d') != session.stop.format('Y-m-d') %} - {{ session.stop.format('Y-m-d H:i:s') }} - {% else %} - {{ session.stop.format('H:i:s') }} - {% endif %} -
+
{{ session.stop|localizeddate('none', 'medium') }}
{% trans %}Length{% endtrans %}
-
{{ session.length.format('H:i:s') }}
+
{{ session.length|localizeddate('none', 'short', null, null, 'HH:mm') }}
+
+
+
{% trans %}Slot{% endtrans %}
+
{{ session.slot.title }}
{% trans %}Locked{% endtrans %}
@@ -68,17 +103,17 @@ {% if session.locked is null %} {% trans %}None{% endtrans %} {% else %} - {{ session.locked.format('Y-m-d H:i:s') }} + {{ session.locked|localizeddate('long', 'medium') }} {% endif %}
{% trans %}Created{% endtrans %}
-
{{ session.created.format('Y-m-d H:i:s') }}
+
{{ session.created|localizeddate('long', 'medium') }}
{% trans %}Updated{% endtrans %}
-
{{ session.updated.format('Y-m-d H:i:s') }}
+
{{ session.updated|localizeddate('long', 'medium') }}
@@ -160,17 +195,17 @@
{{ include('@RapsysAir/form/_toolbox.html.twig') }}
-
+

{% trans %}Candidates{% endtrans %}

-
+
{% if session.applications is null %}
{% trans %}None{% endtrans %}
{% else %} {% for application in session.applications %} -
-

{{ application.user.title }}

+
+

{{ application.user.title }}

{% trans %}Score{% endtrans %}
@@ -182,11 +217,11 @@
{% trans %}Created{% endtrans %}
-
{{ application.created.format('Y-m-d H:i:s') }}
+
{{ application.created|localizeddate('long', 'medium') }}
{% trans %}Updated{% endtrans %}
-
{{ application.updated.format('Y-m-d H:i:s') }}
+
{{ application.updated|localizeddate('long', 'medium') }}
{% trans %}Canceled{% endtrans %}
@@ -194,26 +229,15 @@ {% if application.canceled is null %} {% trans %}None{% endtrans %} {% else %} - {{ application.canceled.format('Y-m-d H:i:s') }} + {{ application.canceled|localizeddate('long', 'medium') }} {% endif %}
-
+
{% endfor %} {% endif %}
-
- - {% if locations is defined and locations %} -
-

{% trans %}Locations{% endtrans %}

-
- {% for id, title in locations %} -
-

{{ title }}

-
- {% endfor %} -
-
- {% endif %} + + + {{ include('@RapsysAir/default/_location.html.twig') }} {% endblock %}