]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig
Access to search, filters, export on mobile
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / material / layout.html.twig
CommitLineData
53e12188
AD
1{% extends "WallabagCoreBundle::base.html.twig" %}
2
3{% block css %}
4 {{ parent() }}
5ecdfcd0 5 <link rel="stylesheet" href="{{ asset('bundles/wallabagcore/themes/material/css/style.min.css') }}" media="screen,projection,print"/>
53e12188
AD
6{% endblock %}
7
8{% block scripts %}
9 {{ parent() }}
5ecdfcd0 10 <script src="{{ asset('bundles/wallabagcore/themes/material/js/material.min.js') }}"></script>
53e12188
AD
11{% endblock %}
12
13{% block header %}
14{% endblock %}
15
a6523cfe
AD
16{% block messages %}
17 {% for flashMessage in app.session.flashbag.get('notice') %}
18 <script>
8e417206 19 Materialize.toast('{{ flashMessage|trans }}', 4000);
a6523cfe
AD
20 </script>
21 {% endfor %}
22{% endblock %}
23
24{% block menu %}
25 <nav class="cyan darken-1">
26 <ul id="slide-out" class="side-nav fixed">
27 {% block logo %}
28 <li class="logo border-bottom">
0d42217e 29 <a title="{{ 'menu.left.back_to_unread'|trans }}" href="{{ path('unread') }}">
5ecdfcd0 30 <img src="{{ asset('bundles/wallabagcore/themes/_global/img/logo-square.png') }}" alt="wallabag logo" />
a6523cfe
AD
31 </a>
32 </li>
33 {% endblock %}
34
35 {% set currentRoute = app.request.attributes.get('_route') %}
36
0d42217e 37 <li class="bold {% if currentRoute == 'unread' or currentRoute == 'homepage' %}active{% endif %}">
59ddb9ae 38 <a class="waves-effect" href="{{ path('unread') }}">{{ 'menu.left.unread'|trans }} <span class="numberItems grey-text">{{ count_entries('unread') }}</span></a>
0d42217e
JB
39 </li>
40 <li class="bold {% if currentRoute == 'starred' %}active{% endif %}">
59ddb9ae 41 <a class="waves-effect" href="{{ path('starred') }}">{{ 'menu.left.starred'|trans }} <span class="numberItems grey-text">{{ count_entries('starred') }}</span></a>
0d42217e
JB
42 </li>
43 <li class="bold {% if currentRoute == 'archive' %}active{% endif %}">
59ddb9ae 44 <a class="waves-effect" href="{{ path('archive') }}">{{ 'menu.left.archive'|trans }} <span class="numberItems grey-text">{{ count_entries('archive') }}</span></a>
0d42217e 45 </li>
152fcccd 46 <li class="bold {% if currentRoute == 'all' %}active{% endif %}">
59ddb9ae 47 <a class="waves-effect" href="{{ path('all') }}">{{ 'menu.left.all_articles'|trans }} <span class="numberItems grey-text">{{ count_entries('all') }}</span></a>
0d42217e
JB
48 </li>
49 <li class="bold border-bottom {% if currentRoute == 'tags' %}active{% endif %}">
429d86f3 50 <a class="waves-effect" href="{{ path('tag') }}">{{ 'menu.left.tags'|trans }} <span class="numberItems grey-text">{{ count_tags() }}</span></a>
0d42217e
JB
51 </li>
52 <li class="bold {% if currentRoute == 'config' %}active{% endif %}">
53 <a class="waves-effect" href="{{ path('config') }}">{{ 'menu.left.config'|trans }}</a>
54 </li>
63e40f2d 55 {% if is_granted('ROLE_SUPER_ADMIN') %}
152fcccd
JB
56 <li class="bold {% if currentRoute starts with 'user_' %}active{% endif %}">
57 <a class="waves-effect" href="{{ path('user_index') }}">{{ 'menu.left.users_management'|trans }}</a>
58 </li>
59
0d42217e
JB
60 <li class="bold border-bottom {% if currentRoute == 'craue_config_settings_modify' %}active{% endif %}">
61 <a class="waves-effect" href="{{ path('craue_config_settings_modify') }}">{{ 'menu.left.internal_settings'|trans }}</a>
62 </li>
63e40f2d 63 {% endif %}
0d42217e
JB
64 <li class="bold {% if currentRoute == 'import' %}active{% endif %}">
65 <a class="waves-effect" href="{{ path('import') }}">{{ 'menu.left.import'|trans }}</a>
66 </li>
67 <li class="bold {% if currentRoute == 'developer' %}active{% endif %}">
68 <a class="waves-effect" href="{{ path('developer') }}">{{ 'menu.left.developer'|trans }}</a>
69 </li>
70 <li class="bold {% if currentRoute == 'howto' %}active{% endif %}">
71 <a class="waves-effect" href="{{ path('howto') }}">{{ 'menu.left.howto'|trans }}</a>
72 </li>
73 <li class="bold">
c5e4293e 74 <a class="waves-effect icon icon-power" href="{{ path('fos_user_security_logout') }}">{{ 'menu.left.logout'|trans }}</a>
0d42217e 75 </li>
a6523cfe
AD
76 </ul>
77 <div class="nav-wrapper nav-panels">
5ecdfcd0 78 <a href="#" data-activates="slide-out" class="nav-panel-menu button-collapse"><i class="material-icons">menu</i></a>
a6523cfe 79 <div class="left action">
a64f1d9f
NL
80 {% block title %}
81 {% endblock %}
a6523cfe 82 </div>
22d0c929
S
83 <ul class="input-field nav-panel-buttom">
84 <li class="bold">
85 <a class="waves-effect tooltipped" data-position="bottom" data-delay="50" data-tooltip="{{ 'menu.top.add_new_entry'|trans }}" href="{{ path('new') }}" id="nav-btn-add">
86 <i class="material-icons">add</i>
87 </a>
88 </li>
89 <li>
90 <a class="waves-effect tooltipped" data-position="bottom" data-delay="50" data-tooltip="{{ 'menu.top.search'|trans }}" href="javascript: void(null);" id="nav-btn-search">
91 <i class="material-icons">search</i>
92 </a>
93 </li>
94 <li id="button_filters">
95 <a class="nav-panel-menu button-collapse-right tooltipped" data-position="bottom" data-delay="50" data-tooltip="{{ 'menu.top.filter_entries'|trans }}" href="#" data-activates="filters">
96 <i class="material-icons">filter_list</i>
97 </a>
98 </li>
99 <li id="button_export">
100 <a class="nav-panel-menu button-collapse-right tooltipped" data-position="bottom" data-delay="50" data-tooltip="{{ 'menu.top.export'|trans }}" href="#" data-activates="export">
101 <i class="material-icons">file_download</i>
102 </a>
103 </li>
104 </ul>
ee122a75 105 <div class="input-field nav-panel-search" style="display: none">
49b042df 106 {{ render(controller("WallabagCoreBundle:Entry:searchForm", {'currentRoute': app.request.attributes.get('_route')})) }}
ee122a75
NL
107 <label for="search" class="active"><i class="material-icons search">search</i></label>
108 <i class="material-icons close">clear</i>
109 </div>
053b9568 110 <div class="input-field nav-panel-add" style="display: none">
0d42217e 111 {{ render(controller("WallabagCoreBundle:Entry:addEntryForm")) }}
5ecdfcd0
TC
112 <label for="add" class="active"><i class="material-icons add">add</i></label>
113 <i class="material-icons close">clear</i>
053b9568 114 </div>
a6523cfe
AD
115 </div>
116 </nav>
117{% endblock %}
4e9f656e
NL
118
119{% block footer %}
e77cde45
NL
120 <footer class="page-footer cyan darken-2">
121 <div class="footer-copyright">
122 <div class="container">
1264029c 123 <div class="row">
d56d416d
TC
124 <div class="col m12 l8 hide-on-small-only">
125 <p title="{{ display_stats() | raw | striptags }}">
1264029c
JB
126 {{ display_stats() }}
127 </p>
128 </div>
d56d416d 129 <div class="col s12 l4">
1264029c
JB
130 <p>
131 {{ 'footer.wallabag.powered_by'|trans }} <a target="_blank" href="https://wallabag.org" class="grey-text text-lighten-4">wallabag</a> –
132 <a class="grey-text text-lighten-4" href="{{ path('about') }}">{{ 'footer.wallabag.about'|trans|lower }}</a>
133 </p>
134 </div>
135 </div>
e77cde45
NL
136 </div>
137 </div>
138 </footer>
4e9f656e 139{% endblock %}