X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/534677f1a55761375b6d4c61e78be73828918035..65b52d487e62e379197cf846e5c5359542e0c01b:/Resources/views/session/view.html.twig diff --git a/Resources/views/session/view.html.twig b/Resources/views/session/view.html.twig index c8b78b1..ccf4efe 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,58 @@
{{ 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 %}Donate{% endtrans %}
+
{{ 'Donate to %pseudonym%'|trans({'%pseudonym%': session.application.user.title}) }}
+
+ {% endif %} + {% if session.snippet.link is defined and session.snippet.link %}
-
{% trans %}Donation{% endtrans %}
-
{{ 'Contribute to %title%'|trans({'%title%': session.application.user.title}) }}
+
{% trans %}Link{% endtrans %}
+
{{ 'Link to %pseudonym%'|trans({'%pseudonym%': session.application.user.title}) }}
{% endif %} - {% if session.application.user.site is defined and session.application.user.site %} + {% if session.snippet.profile is defined and session.snippet.profile %}
-
{% trans %}Website{% endtrans %}
-
{{ 'Website of %title%'|trans({'%title%': session.application.user.title}) }}
+
{% trans %}Social network{% endtrans %}
+
{{ 'Consult %pseudonym% profile'|trans({'%pseudonym%': session.application.user.title}) }}
{% 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 +90,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 +182,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 +204,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 +216,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 %}