From f3dfacbe6f7b850b43fc1fed423fa4eb665529f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 8 Dec 2020 01:42:53 +0100 Subject: [PATCH] Add weather and slot glyphs Improve locations section --- Resources/views/location/view.html.twig | 21 ++++++++++++++------- Resources/views/session/index.html.twig | 21 ++++++++++++++------- Resources/views/user/view.html.twig | 21 ++++++++++++++------- 3 files changed, 42 insertions(+), 21 deletions(-) diff --git a/Resources/views/location/view.html.twig b/Resources/views/location/view.html.twig index 6920fee..dcff401 100644 --- a/Resources/views/location/view.html.twig +++ b/Resources/views/location/view.html.twig @@ -13,6 +13,10 @@ {% for session in day.sessions %}
  • {{ session.title }} + + {% if session.weather is defined and session.weather %}{{ session.weather }}{% endif %} + {{ session.slot }} +
  • {% endfor %} @@ -27,13 +31,16 @@ {% if locations is defined and locations %}
    -
    - {% for id, title in locations %} -
    -

    {{ title }}

    -
    - {% endfor %} -
    +
    +

    {% trans %}Locations{% endtrans %}

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

    {{ title }}

    +
    + {% endfor %} +
    +
    {% endif %} diff --git a/Resources/views/session/index.html.twig b/Resources/views/session/index.html.twig index 716eb99..291e52a 100644 --- a/Resources/views/session/index.html.twig +++ b/Resources/views/session/index.html.twig @@ -13,6 +13,10 @@ {% for session in day.sessions %}
  • {{ session.title }} + + {% if session.weather is defined and session.weather %}{{ session.weather }}{% endif %} + {{ session.slot }} +
  • {% endfor %} @@ -27,13 +31,16 @@ {% if locations is defined and locations %}
    -
    - {% for id, title in locations %} -
    -

    {{ title }}

    -
    - {% endfor %} -
    +
    +

    {% trans %}Locations{% endtrans %}

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

    {{ title }}

    +
    + {% endfor %} +
    +
    {% endif %} diff --git a/Resources/views/user/view.html.twig b/Resources/views/user/view.html.twig index 2110208..162c383 100644 --- a/Resources/views/user/view.html.twig +++ b/Resources/views/user/view.html.twig @@ -13,6 +13,10 @@ {% for session in day.sessions %}
  • {{ session.title }} + + {% if session.weather is defined and session.weather %}{{ session.weather }}{% endif %} + {{ session.slot }} +
  • {% endfor %} @@ -27,13 +31,16 @@ {% if locations is defined and locations %}
    -
    - {% for id, title in locations %} -
    -

    {{ title }}

    -
    - {% endfor %} -
    +
    +

    {% trans %}Locations{% endtrans %}

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

    {{ title }}

    +
    + {% endfor %} +
    +
    {% endif %} -- 2.41.0