]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig
Deal with more resolution issues
[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
23 {{ render(controller("WallabagImportBundle:Import:checkQueue")) }}
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">
31 <a title="{{ 'menu.left.back_to_unread'|trans }}" href="{{ path('unread') }}">
32 <img src="{{ asset('bundles/wallabagcore/themes/_global/img/logo-square.png') }}" alt="wallabag logo" />
33 </a>
34 </li>
35 {% endblock %}
36
37 {% set currentRoute = app.request.attributes.get('_route') %}
38
39 <li class="bold {% if currentRoute == 'unread' or currentRoute == 'homepage' %}active{% endif %}">
40 <a class="waves-effect" href="{{ path('unread') }}">{{ 'menu.left.unread'|trans }} <span class="numberItems grey-text">{{ count_entries('unread') }}</span></a>
41 </li>
42 <li class="bold {% if currentRoute == 'starred' %}active{% endif %}">
43 <a class="waves-effect" href="{{ path('starred') }}">{{ 'menu.left.starred'|trans }} <span class="numberItems grey-text">{{ count_entries('starred') }}</span></a>
44 </li>
45 <li class="bold {% if currentRoute == 'archive' %}active{% endif %}">
46 <a class="waves-effect" href="{{ path('archive') }}">{{ 'menu.left.archive'|trans }} <span class="numberItems grey-text">{{ count_entries('archive') }}</span></a>
47 </li>
48 <li class="bold {% if currentRoute == 'all' %}active{% endif %}">
49 <a class="waves-effect" href="{{ path('all') }}">{{ 'menu.left.all_articles'|trans }} <span class="numberItems grey-text">{{ count_entries('all') }}</span></a>
50 </li>
51 <li class="bold border-bottom {% if currentRoute == 'tags' %}active{% endif %}">
52 <a class="waves-effect" href="{{ path('tag') }}">{{ 'menu.left.tags'|trans }} <span class="numberItems grey-text">{{ count_tags() }}</span></a>
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>
57 {% if is_granted('ROLE_SUPER_ADMIN') %}
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
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>
65 {% endif %}
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 icon icon-power" href="{{ path('fos_user_security_logout') }}">{{ 'menu.left.logout'|trans }}</a>
77 </li>
78 </ul>
79 <div class="nav-wrapper nav-panels">
80 <a href="#" data-activates="slide-out" class="nav-panel-menu button-collapse"><i class="material-icons">menu</i></a>
81 <div class="left action">
82 {% block title %}
83 {% endblock %}
84 </div>
85 <div class="input-field nav-panel-buttom">
86 <ul>
87 <li class="bold">
88 <a title="{{ 'menu.top.add_new_entry'|trans }}" class="waves-effect" href="{{ path('new') }}" id="nav-btn-add">
89 <i class="material-icons">add</i>
90 </a>
91 </li>
92 <!--<li>
93 <a title="{{ 'menu.top.search'|trans }}" class="waves-effect" href="javascript: void(null);" id="nav-btn-search">
94 <i class="material-icons">search</i>
95 </a>
96 </li>-->
97 <li id="button_filters">
98 <a title="{{ 'menu.top.filter_entries'|trans }}" href="#" data-activates="filters" class="nav-panel-menu button-collapse-right">
99 <i class="material-icons">filter_list</i>
100 </a>
101 </li>
102 <li id="button_export">
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>
105 </a>
106 </li>
107 </ul>
108 </div>
109 <form method="get" action="index.php">
110 <div class="input-field nav-panel-search" style="display: none">
111 <input name="search" id="searchfield" type="search" required placeholder="{{ 'menu.search_form.input_label'|trans }}">
112 <label for="search"><i class="material-icons search">search</i></label>
113 <i class="material-icons close">clear</i>
114 </div>
115 </form>
116 <div class="input-field nav-panel-add" style="display: none">
117 {{ render(controller("WallabagCoreBundle:Entry:addEntryForm")) }}
118 <label for="add" class="active"><i class="material-icons add">add</i></label>
119 <i class="material-icons close">clear</i>
120 </div>
121 </div>
122 </nav>
123 {% endblock %}
124
125 {% block footer %}
126 <footer class="page-footer cyan darken-2">
127 <div class="footer-copyright">
128 <div class="container">
129 <div class="row">
130 <div class="col m12 l8 hide-on-small-only">
131 <p title="{{ display_stats() | raw | striptags }}">
132 {{ display_stats() }}
133 </p>
134 </div>
135 <div class="col s12 l4">
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>
142 </div>
143 </div>
144 </footer>
145 {% endblock %}