]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig
Merge pull request #2399 from wallabag/use-locale-for-config
[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 %}
e01a3c98
JB
22
23 {{ render(controller("WallabagImportBundle:Import:checkQueue")) }}
a6523cfe
AD
24{% endblock %}
25
26{% block menu %}
27 <nav class="cyan darken-1">
28 <ul id="slide-out" class="side-nav fixed">
29 {% block logo %}
30 <li class="logo border-bottom">
0d42217e 31 <a title="{{ 'menu.left.back_to_unread'|trans }}" href="{{ path('unread') }}">
5ecdfcd0 32 <img src="{{ asset('bundles/wallabagcore/themes/_global/img/logo-square.png') }}" alt="wallabag logo" />
a6523cfe
AD
33 </a>
34 </li>
35 {% endblock %}
36
37 {% set currentRoute = app.request.attributes.get('_route') %}
38
0d42217e 39 <li class="bold {% if currentRoute == 'unread' or currentRoute == 'homepage' %}active{% endif %}">
59ddb9ae 40 <a class="waves-effect" href="{{ path('unread') }}">{{ 'menu.left.unread'|trans }} <span class="numberItems grey-text">{{ count_entries('unread') }}</span></a>
0d42217e
JB
41 </li>
42 <li class="bold {% if currentRoute == 'starred' %}active{% endif %}">
59ddb9ae 43 <a class="waves-effect" href="{{ path('starred') }}">{{ 'menu.left.starred'|trans }} <span class="numberItems grey-text">{{ count_entries('starred') }}</span></a>
0d42217e
JB
44 </li>
45 <li class="bold {% if currentRoute == 'archive' %}active{% endif %}">
59ddb9ae 46 <a class="waves-effect" href="{{ path('archive') }}">{{ 'menu.left.archive'|trans }} <span class="numberItems grey-text">{{ count_entries('archive') }}</span></a>
0d42217e 47 </li>
152fcccd 48 <li class="bold {% if currentRoute == 'all' %}active{% endif %}">
59ddb9ae 49 <a class="waves-effect" href="{{ path('all') }}">{{ 'menu.left.all_articles'|trans }} <span class="numberItems grey-text">{{ count_entries('all') }}</span></a>
0d42217e
JB
50 </li>
51 <li class="bold border-bottom {% if currentRoute == 'tags' %}active{% endif %}">
429d86f3 52 <a class="waves-effect" href="{{ path('tag') }}">{{ 'menu.left.tags'|trans }} <span class="numberItems grey-text">{{ count_tags() }}</span></a>
0d42217e
JB
53 </li>
54 <li class="bold {% if currentRoute == 'config' %}active{% endif %}">
55 <a class="waves-effect" href="{{ path('config') }}">{{ 'menu.left.config'|trans }}</a>
56 </li>
63e40f2d 57 {% if is_granted('ROLE_SUPER_ADMIN') %}
152fcccd
JB
58 <li class="bold {% if currentRoute starts with 'user_' %}active{% endif %}">
59 <a class="waves-effect" href="{{ path('user_index') }}">{{ 'menu.left.users_management'|trans }}</a>
60 </li>
61
0d42217e
JB
62 <li class="bold border-bottom {% if currentRoute == 'craue_config_settings_modify' %}active{% endif %}">
63 <a class="waves-effect" href="{{ path('craue_config_settings_modify') }}">{{ 'menu.left.internal_settings'|trans }}</a>
64 </li>
63e40f2d 65 {% endif %}
0d42217e
JB
66 <li class="bold {% if currentRoute == 'import' %}active{% endif %}">
67 <a class="waves-effect" href="{{ path('import') }}">{{ 'menu.left.import'|trans }}</a>
68 </li>
69 <li class="bold {% if currentRoute == 'developer' %}active{% endif %}">
70 <a class="waves-effect" href="{{ path('developer') }}">{{ 'menu.left.developer'|trans }}</a>
71 </li>
72 <li class="bold {% if currentRoute == 'howto' %}active{% endif %}">
73 <a class="waves-effect" href="{{ path('howto') }}">{{ 'menu.left.howto'|trans }}</a>
74 </li>
75 <li class="bold">
76 <a class="waves-effect" class="icon icon-power" href="{{ path('fos_user_security_logout') }}">{{ 'menu.left.logout'|trans }}</a>
77 </li>
a6523cfe
AD
78 </ul>
79 <div class="nav-wrapper nav-panels">
5ecdfcd0 80 <a href="#" data-activates="slide-out" class="nav-panel-menu button-collapse"><i class="material-icons">menu</i></a>
a6523cfe 81 <div class="left action">
a64f1d9f
NL
82 {% block title %}
83 {% endblock %}
a6523cfe
AD
84 </div>
85 <div class="input-field nav-panel-buttom">
86 <ul>
0d42217e
JB
87 <li class="bold">
88 <a title="{{ 'menu.top.add_new_entry'|trans }}" class="waves-effect" href="{{ path('new') }}" id="nav-btn-add">
5ecdfcd0 89 <i class="material-icons">add</i>
0d42217e
JB
90 </a>
91 </li>
0795d049 92 <!--<li>
0d42217e 93 <a title="{{ 'menu.top.search'|trans }}" class="waves-effect" href="javascript: void(null);" id="nav-btn-search">
5ecdfcd0 94 <i class="material-icons">search</i>
0d42217e 95 </a>
0795d049 96 </li>-->
0d42217e
JB
97 <li id="button_filters">
98 <a title="{{ 'menu.top.filter_entries'|trans }}" href="#" data-activates="filters" class="nav-panel-menu button-collapse-right">
5ecdfcd0 99 <i class="material-icons">filter_list</i>
0d42217e
JB
100 </a>
101 </li>
102 <li id="button_export">
5ecdfcd0
TC
103 <a title="{{ 'menu.top.export'|trans }}" class="nav-panel-menu button-collapse-right" href="#" data-activates="export">
104 <i class="material-icons">file_download</i>
0d42217e
JB
105 </a>
106 </li>
a6523cfe
AD
107 </ul>
108 </div>
109 <form method="get" action="index.php">
110 <div class="input-field nav-panel-search" style="display: none">
0d42217e 111 <input name="search" id="searchfield" type="search" required placeholder="{{ 'menu.search_form.input_label'|trans }}">
5ecdfcd0
TC
112 <label for="search"><i class="material-icons search">search</i></label>
113 <i class="material-icons close">clear</i>
a6523cfe
AD
114 </div>
115 </form>
053b9568 116 <div class="input-field nav-panel-add" style="display: none">
0d42217e 117 {{ render(controller("WallabagCoreBundle:Entry:addEntryForm")) }}
5ecdfcd0
TC
118 <label for="add" class="active"><i class="material-icons add">add</i></label>
119 <i class="material-icons close">clear</i>
053b9568 120 </div>
a6523cfe
AD
121 </div>
122 </nav>
123{% endblock %}
4e9f656e
NL
124
125{% block footer %}
e77cde45
NL
126 <footer class="page-footer cyan darken-2">
127 <div class="footer-copyright">
128 <div class="container">
1264029c
JB
129 <div class="row">
130 <div class="col s8">
131 <p>
132 {{ display_stats() }}
133 </p>
134 </div>
135 <div class="col s4">
136 <p>
137 {{ 'footer.wallabag.powered_by'|trans }} <a target="_blank" href="https://wallabag.org" class="grey-text text-lighten-4">wallabag</a> –
138 <a class="grey-text text-lighten-4" href="{{ path('about') }}">{{ 'footer.wallabag.about'|trans|lower }}</a>
139 </p>
140 </div>
141 </div>
e77cde45
NL
142 </div>
143 </div>
144 </footer>
4e9f656e 145{% endblock %}