-{% block footer %}
- <footer class="page-footer cyan darken-2">
- <div class="container">
- <div class="row">
- <div class="col l6 s12">
- <h5 class="white-text">{% trans %}Take wallabag with you{% endtrans %}</h5>
- <p class="grey-text text-lighten-4">
- {% trans %}We are available at{% endtrans %}
- <a target="_blank" class="grey-text text-lighten-3" href="https://play.google.com/store/apps/details?id=fr.gaulupeau.apps.InThePoche">android</a> (<a target="_blank" class="grey-text text-lighten-3" href="https://f-droid.org/repository/browse/?fdid=fr.gaulupeau.apps.InThePoche">f-droid</a>)
- {% trans %}and{% endtrans %}
- <a target="_blank" class="grey-text text-lighten-3" href="https://itunes.apple.com/app/id828331015">iOS</a>.<br>
- {% trans %}Install add-ons for{% endtrans %}
- <a target="_blank" class="grey-text text-lighten-3" href="https://addons.mozilla.org/ru/firefox/addon/wallabag/">firefox</a>
- {% trans %}and{% endtrans %}
- <a target="_blank" class="grey-text text-lighten-3" href="https://chrome.google.com/webstore/detail/wallabagit/peehlcgckcnclnjlndmoddifcicdnabm">chrome</a>.
- </p>
- </div>
- <div class="col l4 offset-l2 s12">
- <h5 class="white-text">{% trans %}Social{% endtrans %}</h5>
- <ul>
- <li><a target="_blank" class="grey-text text-lighten-3" href="https://twitter.com/wallabagapp">Twitter</a></li>
- <li><a target="_blank" class="grey-text text-lighten-3" href="https://plus.google.com/+WallabagOrg/posts">Google+</a></li>
- </ul>
+{% block messages %}
+ {% for flashMessage in app.session.flashbag.get('notice') %}
+ <script>
+ Materialize.toast('{{ flashMessage|trans }}', 4000);
+ </script>
+ {% endfor %}
+{% endblock %}
+
+{% block menu %}
+ <nav class="cyan darken-1">
+ <ul id="slide-out" class="side-nav fixed">
+ {% block logo %}
+ <li class="logo border-bottom">
+ <a title="{{ 'menu.left.back_to_unread'|trans }}" href="{{ path('unread') }}">
+ <img src="{{ asset('wallassets/themes/_global/img/logo-square.svg') }}" alt="wallabag logo" />
+ </a>
+ </li>
+ {% 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 %}
+
+ <li class="bold {% if activeRoute == 'unread' %}active{% endif %}">
+ <a class="waves-effect" href="{{ path('unread') }}">{{ 'menu.left.unread'|trans }} <span class="numberItems grey-text">{{ count_entries('unread') }}</span></a>
+ </li>
+ <li class="bold {% if activeRoute == 'starred' %}active{% endif %}">
+ <a class="waves-effect" href="{{ path('starred') }}">{{ 'menu.left.starred'|trans }} <span class="numberItems grey-text">{{ count_entries('starred') }}</span></a>
+ </li>
+ <li class="bold {% if activeRoute == 'archive' %}active{% endif %}">
+ <a class="waves-effect" href="{{ path('archive') }}">{{ 'menu.left.archive'|trans }} <span class="numberItems grey-text">{{ count_entries('archive') }}</span></a>
+ </li>
+ <li class="bold {% if activeRoute == 'all' %}active{% endif %}">
+ <a class="waves-effect" href="{{ path('all') }}">{{ 'menu.left.all_articles'|trans }} <span class="numberItems grey-text">{{ count_entries('all') }}</span></a>
+ </li>
+ <li class="bold border-bottom {% if currentRoute == 'tags' %}active{% endif %}">
+ <a class="waves-effect" href="{{ path('tag') }}">{{ 'menu.left.tags'|trans }} <span class="numberItems grey-text">{{ count_tags() }}</span></a>
+ </li>
+ <li class="bold {% if currentRoute == 'config' %}active{% endif %}">
+ <a class="waves-effect" href="{{ path('config') }}">{{ 'menu.left.config'|trans }}</a>
+ </li>
+ {% if craue_setting('restricted_access') %}
+ <li class="bold {% if currentRoute starts with 'site_credentials_' %}active{% endif %}">
+ <a class="waves-effect" href="{{ path('site_credentials_index') }}">{{ 'menu.left.site_credentials'|trans }}</a>
+ </li>
+ {% endif %}
+ {% if is_granted('ROLE_SUPER_ADMIN') %}
+ <li class="bold {% if currentRoute starts with 'user_' %}active{% endif %}">
+ <a class="waves-effect" href="{{ path('user_index') }}">{{ 'menu.left.users_management'|trans }}</a>
+ </li>
+
+ <li class="bold border-bottom {% if currentRoute == 'craue_config_settings_modify' %}active{% endif %}">
+ <a class="waves-effect" href="{{ path('craue_config_settings_modify') }}">{{ 'menu.left.internal_settings'|trans }}</a>
+ </li>
+ {% endif %}
+ <li class="bold {% if currentRoute == 'import' %}active{% endif %}">
+ <a class="waves-effect" href="{{ path('import') }}">{{ 'menu.left.import'|trans }}</a>
+ </li>
+ <li class="bold {% if currentRoute == 'developer' %}active{% endif %}">
+ <a class="waves-effect" href="{{ path('developer') }}">{{ 'menu.left.developer'|trans }}</a>
+ </li>
+ <li class="bold {% if currentRoute == 'howto' %}active{% endif %}">
+ <a class="waves-effect" href="{{ path('howto') }}">{{ 'menu.left.howto'|trans }}</a>
+ </li>
+ <li class="bold">
+ <a class="waves-effect icon icon-power" href="{{ path('fos_user_security_logout') }}">{{ 'menu.left.logout'|trans }}</a>
+ </li>
+ </ul>
+ <div class="nav-panels">
+ <div class="nav-panel-actions nav-panel-item">
+ <div class="nav-panel-top">
+ <button data-activates="slide-out" class="nav-panel-menu button-collapse"><i class="material-icons">menu</i></button>
+ <h1 class="left action">
+ {% block title %}
+ {% endblock %}
+ </h1>