+ {% set activeRoute = null %}
+ {% if currentRoute == 'all' or currentRouteFromQueryParams == 'all' %}
+ {% set activeRoute = 'all' %}
+ {% elseif currentRoute == 'archive' or currentRouteFromQueryParams == 'archive' %}
+ {% set activeRoute = 'archive' %}
+ {% elseif currentRoute == 'starred' or currentRouteFromQueryParams == 'starred' %}
+ {% set activeRoute = 'starred' %}
+ {% elseif currentRoute == 'unread' or currentRoute == 'homepage' or currentRouteFromQueryParams == 'unread' %}
+ {% set activeRoute = 'unread' %}
+ {% endif %}
+
+ <li class="bold {% if activeRoute == 'unread' %}active{% endif %}">