diff --git a/templates/home/missions/missions.html.twig b/templates/home/missions/missions.html.twig index bed46bca..bd86b1c4 100644 --- a/templates/home/missions/missions.html.twig +++ b/templates/home/missions/missions.html.twig @@ -10,52 +10,55 @@ {% block content %}
+ {% if upcomingMissions is null or archivedMissions is null %} +
+

{{ 'Something went wrong while fetching missions list...'|trans }}

+

{{ 'Try again later'|trans }}

+
+ {% else %}
- {% if upcomingMissions is null or archivedMissions is null %} -

{{ 'Something went wrong while fetching missions list...'|trans }}

-

{{ 'Try again later'|trans }}

- {% else %} - -

{{ 'Upcoming missions'|trans }}

+ +

{{ 'Upcoming missions'|trans }}

- {% for missionsRow in upcomingMissions|reverse|batch(3) %} - -
- {% for mission in missionsRow %} - {# @var mission \App\Service\Mission\Dto\MissionDto #} - -
- {% include '_partial/_mission_widget.html.twig' with {'mission': mission} %} -
- - {% endfor %} -
- - {% endfor %} -
+ {% for missionsRow in upcomingMissions|reverse|batch(3) %} + +
+ {% for mission in missionsRow %} + {# @var mission \App\Service\Mission\Dto\MissionDto #} + +
+ {% include '_partial/_mission_widget.html.twig' with {'mission': mission} %} +
+ + {% endfor %} +
+ + {% endfor %} + + - -
- -

{{ 'Completed missions'|trans }}

+ +
+ +

{{ 'Completed missions'|trans }}

- {% for missionsRow in archivedMissions|batch(3) %} - -
- {% for mission in missionsRow %} - {# @var mission \App\Service\Mission\Dto\MissionDto #} - -
- {% include '_partial/_mission_widget.html.twig' with {'mission': mission, 'lazy': true} %} -
- - {% endfor %} -
- - {% endfor %} - {% endif %} + {% for missionsRow in archivedMissions|batch(3) %} + +
+ {% for mission in missionsRow %} + {# @var mission \App\Service\Mission\Dto\MissionDto #} + +
+ {% include '_partial/_mission_widget.html.twig' with {'mission': mission, 'lazy': true} %} +
+ + {% endfor %} +
+ + {% endfor %}
- + + {% endif %}
{% endblock %}