]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig
Fix double overlay on expanded right sidenav
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / material / layout.html.twig
1 {% extends "WallabagCoreBundle::base.html.twig" %}
2
3 {% block css %}
4 {{ parent() }}
5 <link rel="stylesheet" href="{{ asset('bundles/wallabagcore/themes/material/css/style.min.css') }}" media="screen,projection,print"/>
6 {% endblock %}
7
8 {% block scripts %}
9 {{ parent() }}
10 <script src="{{ asset('bundles/wallabagcore/themes/material/js/material.min.js') }}"></script>
11 {% endblock %}
12
13 {% block header %}
14 {% endblock %}
15
16 {% block messages %}
17 {% for flashMessage in app.session.flashbag.get('notice') %}
18 <script>
19 Materialize.toast('{{ flashMessage|trans }}', 4000);
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">
29 <a title="{{ 'menu.left.back_to_unread'|trans }}" href="{{ path('unread') }}">
30 <img src="{{ asset('bundles/wallabagcore/themes/_global/img/logo-square.png') }}" alt="wallabag logo" />
31 </a>
32 </li>
33 {% endblock %}
34
35 {% set currentRoute = app.request.attributes.get('_route') %}
36
37 <li class="bold {% if currentRoute == 'unread' or currentRoute == 'homepage' %}active{% endif %}">
38 <a class="waves-effect" href="{{ path('unread') }}">{{ 'menu.left.unread'|trans }} <span class="numberItems grey-text">{{ count_entries('unread') }}</span></a>
39 </li>
40 <li class="bold {% if currentRoute == 'starred' %}active{% endif %}">
41 <a class="waves-effect" href="{{ path('starred') }}">{{ 'menu.left.starred'|trans }} <span class="numberItems grey-text">{{ count_entries('starred') }}</span></a>
42 </li>
43 <li class="bold {% if currentRoute == 'archive' %}active{% endif %}">
44 <a class="waves-effect" href="{{ path('archive') }}">{{ 'menu.left.archive'|trans }} <span class="numberItems grey-text">{{ count_entries('archive') }}</span></a>
45 </li>
46 <li class="bold {% if currentRoute == 'all' %}active{% endif %}">
47 <a class="waves-effect" href="{{ path('all') }}">{{ 'menu.left.all_articles'|trans }} <span class="numberItems grey-text">{{ count_entries('all') }}</span></a>
48 </li>
49 <li class="bold border-bottom {% if currentRoute == 'tags' %}active{% endif %}">
50 <a class="waves-effect" href="{{ path('tag') }}">{{ 'menu.left.tags'|trans }} <span class="numberItems grey-text">{{ count_tags() }}</span></a>
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>
55 {% if is_granted('ROLE_SUPER_ADMIN') %}
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
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>
63 {% endif %}
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">
74 <a class="waves-effect icon icon-power" href="{{ path('fos_user_security_logout') }}">{{ 'menu.left.logout'|trans }}</a>
75 </li>
76 </ul>
77 <div class="nav-wrapper nav-panels">
78 <a href="#" data-activates="slide-out" class="nav-panel-menu button-collapse"><i class="material-icons">menu</i></a>
79 <div class="left action">
80 {% block title %}
81 {% endblock %}
82 </div>
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 js-filters-action" 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 js-export-action" 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>
105 <div class="input-field nav-panel-search" style="display: none">
106 {{ render(controller("WallabagCoreBundle:Entry:searchForm", {'currentRoute': app.request.attributes.get('_route')})) }}
107 <label for="search" class="active"><i class="material-icons search">search</i></label>
108 <i class="material-icons close">clear</i>
109 </div>
110 <div class="input-field nav-panel-add" style="display: none">
111 {{ render(controller("WallabagCoreBundle:Entry:addEntryForm")) }}
112 <label for="add" class="active"><i class="material-icons add">add</i></label>
113 <i class="material-icons close">clear</i>
114 </div>
115 </div>
116 </nav>
117 {% endblock %}
118
119 {% block footer %}
120 <footer class="page-footer cyan darken-2">
121 <div class="footer-copyright">
122 <div class="container">
123 <div class="row">
124 <div class="col m12 l8 hide-on-small-only">
125 <p title="{{ display_stats() | raw | striptags }}">
126 {{ display_stats() }}
127 </p>
128 </div>
129 <div class="col s12 l4">
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>
136 </div>
137 </div>
138 </footer>
139 {% endblock %}