change order of condition

This commit is contained in:
Nicolas Lœuillet 2015-08-05 21:16:48 +02:00
parent b1a65df9df
commit 308db01684

View file

@ -3,12 +3,12 @@
{% block title %}
{% set currentRoute = app.request.attributes.get('_route') %}
{% if currentRoute == 'unread' %}
{% trans %}Unread{% endtrans %}
{% elseif currentRoute == 'starred' %}
{% if currentRoute == 'starred' %}
{% trans %}Starred{% endtrans %}
{% elseif currentRoute == 'archive' %}
{% trans %}Archive{% endtrans %}
{% else %}
{% trans %}Unread{% endtrans %}
{% endif %}
{% endblock %}