{% extends "base.html.twig" %} {% block css %} {{ parent() }} {% if not app.debug %} {% endif %} {% endblock %} {% block scripts %} {{ parent() }} {% endblock %} {% block header %} {% endblock %} {% block messages %} {% for flash_message in app.session.flashbag.get('notice') %} {% endfor %} {% endblock %} {% block body_class %}index{% endblock %} {% block menu %} {% block logo %} {% endblock %} {% set current_route = app.request.attributes.get('_route') %} {% set current_route_from_query_params = app.request.query.get('currentRoute') %} {% set active_route = null %} {% if current_route == 'all' or current_route_from_query_params == 'all' %} {% set active_route = 'all' %} {% elseif current_route == 'annotated' or current_route_from_query_params == 'annotated' %} {% set active_route = 'annotated' %} {% elseif current_route == 'archive' or current_route_from_query_params == 'archive' %} {% set active_route = 'archive' %} {% elseif current_route == 'starred' or current_route_from_query_params == 'starred' %} {% set active_route = 'starred' %} {% elseif current_route == 'unread' or current_route == 'homepage' or current_route_from_query_params == 'unread' %} {% set active_route = 'unread' %} {% elseif current_route == 'untagged' %} {% set active_route = 'untagged' %} {% endif %} {{ 'menu.left.unread'|trans }} {{ count_entries('unread') }} {{ 'menu.left.starred'|trans }} {{ count_entries('starred') }} {{ 'menu.left.archive'|trans }} {{ count_entries('archive') }} {{ 'menu.left.with_annotations'|trans }} {{ count_entries('annotated') }} {{ 'menu.left.all_articles'|trans }} {{ count_entries('all') }} {{ 'menu.left.tags'|trans }} {{ count_tags() }} menu {% block title %} {% endblock %} add search {% if active_route %} casino {% endif %} filter_list file_download account_circle settings {{ 'menu.left.config'|trans }} smartphone {{ 'menu.left.developer'|trans }} import_export {{ 'menu.left.import'|trans }} {% if craue_setting('restricted_access') %} vpn_key {{ 'menu.left.site_credentials'|trans }} {% endif %} {% if is_granted('ROLE_SUPER_ADMIN') %} people{{ 'menu.left.users_management'|trans }} settings {{ 'menu.left.internal_settings'|trans }} build {{ 'menu.left.ignore_origin_instance_rules'|trans }} {% endif %} brightness_high {{ 'menu.left.theme_toggle_light'|trans }} brightness_low {{ 'menu.left.theme_toggle_dark'|trans }} brightness_auto {{ 'menu.left.theme_toggle_auto'|trans }} live_help {{ 'menu.left.howto'|trans }} assistant_photo {{ 'menu.left.quickstart'|trans }} input {{ 'menu.left.logout'|trans }} {{ render(controller('Wallabag\\Controller\\EntryController::searchFormAction', {'currentRoute': current_route})) }} {{ render(controller('Wallabag\\Controller\\EntryController::addEntryFormAction')) }} {% endblock %} {% block footer %} {% endblock %}