-{% 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 %}
+
+ {{ render(controller("WallabagImportBundle:Import:checkQueue")) }}
+{% 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('bundles/wallabagcore/themes/_global/img/logo-square.png') }}" alt="wallabag logo" />
+ </a>
+ </li>
+ {% endblock %}
+
+ {% set currentRoute = app.request.attributes.get('_route') %}
+
+ <li class="bold {% if currentRoute == 'unread' or currentRoute == 'homepage' %}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 currentRoute == '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 currentRoute == '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 border-bottom {% if currentRoute == '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 is_granted('ROLE_SUPER_ADMIN') %}
+ <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" class="icon icon-power" href="{{ path('fos_user_security_logout') }}">{{ 'menu.left.logout'|trans }}</a>
+ </li>
+ </ul>
+ <div class="nav-wrapper nav-panels">
+ <a href="#" data-activates="slide-out" class="nav-panel-menu button-collapse"><i class="material-icons">menu</i></a>
+ <div class="left action">
+ {% block title %}
+ {% endblock %}
+ </div>
+ <div class="input-field nav-panel-buttom">
+ <ul>
+ <li class="bold">
+ <a title="{{ 'menu.top.add_new_entry'|trans }}" class="waves-effect" href="{{ path('new') }}" id="nav-btn-add">
+ <i class="material-icons">add</i>
+ </a>
+ </li>
+ <!--<li>
+ <a title="{{ 'menu.top.search'|trans }}" class="waves-effect" href="javascript: void(null);" id="nav-btn-search">
+ <i class="material-icons">search</i>
+ </a>
+ </li>-->
+ <li id="button_filters">
+ <a title="{{ 'menu.top.filter_entries'|trans }}" href="#" data-activates="filters" class="nav-panel-menu button-collapse-right">
+ <i class="material-icons">filter_list</i>
+ </a>
+ </li>
+ <li id="button_export">
+ <a title="{{ 'menu.top.export'|trans }}" class="nav-panel-menu button-collapse-right" href="#" data-activates="export">
+ <i class="material-icons">file_download</i>
+ </a>
+ </li>
+ </ul>
+ </div>
+ <form method="get" action="index.php">
+ <div class="input-field nav-panel-search" style="display: none">
+ <input name="search" id="searchfield" type="search" required placeholder="{{ 'menu.search_form.input_label'|trans }}">
+ <label for="search"><i class="material-icons search">search</i></label>
+ <i class="material-icons close">clear</i>