{% extends "WallabagCoreBundle::base.html.twig" %} {% block css %} {{ parent() }} {% endblock %} {% block scripts %} {{ parent() }} {% endblock %} {% block header %} {% endblock %} {% block messages %} {% for flashMessage in app.session.flashbag.get('notice') %} {% endfor %} {% endblock %} {% block menu %} {% block logo %} {% endblock %} {% set currentRoute = app.request.attributes.get('_route') %} {% set currentRouteFromQueryParams = app.request.query.get('currentRoute') %} {% 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 %} {{ 'menu.left.unread'|trans }} {{ count_entries('unread') }} {{ 'menu.left.starred'|trans }} {{ count_entries('starred') }} {{ 'menu.left.archive'|trans }} {{ count_entries('archive') }} {{ 'menu.left.all_articles'|trans }} {{ count_entries('all') }} {{ 'menu.left.tags'|trans }} {{ count_tags() }} {{ 'menu.left.config'|trans }} {% if is_granted('ROLE_SUPER_ADMIN') %} {{ 'menu.left.users_management'|trans }} {{ 'menu.left.internal_settings'|trans }} {% endif %} {{ 'menu.left.import'|trans }} {{ 'menu.left.developer'|trans }} {{ 'menu.left.howto'|trans }} {{ 'menu.left.logout'|trans }} menu {% block title %} {% endblock %} add search filter_list file_download {{ render(controller("WallabagCoreBundle:Entry:searchForm", {'currentRoute': app.request.attributes.get('_route')})) }} search clear {{ render(controller("WallabagCoreBundle:Entry:addEntryForm")) }} add clear {% endblock %} {% block footer %} {% endblock %}