]>
Commit | Line | Data |
---|---|---|
53e12188 AD |
1 | {% extends "WallabagCoreBundle::base.html.twig" %} |
2 | ||
3 | {% block css %} | |
4 | {{ parent() }} | |
5 | ||
30d81a47 JB |
6 | <link rel="stylesheet" href="{{ asset('bundles/wallabagcore/themes/material/css/materialize.min.css') }}" media="screen,projection"/> |
7 | <link rel="stylesheet" href="{{ asset('bundles/wallabagcore/themes/material/css/main.css') }}" media="all"> | |
8 | <link rel="stylesheet" href="{{ asset('bundles/wallabagcore/themes/material/css/print.css') }}" media="print"> | |
53e12188 AD |
9 | {% endblock %} |
10 | ||
11 | {% block scripts %} | |
12 | {{ parent() }} | |
13 | ||
30d81a47 JB |
14 | <script src="{{ asset('bundles/wallabagcore/themes/material/js/materialize.min.js') }}"></script> |
15 | <script src="{{ asset('bundles/wallabagcore/themes/material/js/init.js') }}"></script> | |
53e12188 AD |
16 | {% endblock %} |
17 | ||
18 | {% block header %} | |
19 | {% endblock %} | |
20 | ||
a6523cfe AD |
21 | {% block messages %} |
22 | {% for flashMessage in app.session.flashbag.get('notice') %} | |
23 | <script> | |
8e417206 | 24 | Materialize.toast('{{ flashMessage|trans }}', 4000); |
a6523cfe AD |
25 | </script> |
26 | {% endfor %} | |
27 | {% endblock %} | |
28 | ||
29 | {% block menu %} | |
30 | <nav class="cyan darken-1"> | |
31 | <ul id="slide-out" class="side-nav fixed"> | |
32 | {% block logo %} | |
33 | <li class="logo border-bottom"> | |
0d42217e | 34 | <a title="{{ 'menu.left.back_to_unread'|trans }}" href="{{ path('unread') }}"> |
30d81a47 | 35 | <img src="{{ asset('bundles/wallabagcore/themes/material/img/logo-square.png') }}" alt="wallabag logo" /> |
a6523cfe AD |
36 | </a> |
37 | </li> | |
38 | {% endblock %} | |
39 | ||
40 | {% set currentRoute = app.request.attributes.get('_route') %} | |
41 | ||
0d42217e JB |
42 | <li class="bold {% if currentRoute == 'unread' or currentRoute == 'homepage' %}active{% endif %}"> |
43 | <a class="waves-effect" href="{{ path('unread') }}">{{ 'menu.left.unread'|trans }}</a> | |
44 | </li> | |
45 | <li class="bold {% if currentRoute == 'starred' %}active{% endif %}"> | |
46 | <a class="waves-effect" href="{{ path('starred') }}">{{ 'menu.left.starred'|trans }}</a> | |
47 | </li> | |
48 | <li class="bold {% if currentRoute == 'archive' %}active{% endif %}"> | |
49 | <a class="waves-effect" href="{{ path('archive') }}">{{ 'menu.left.archive'|trans }}</a> | |
50 | </li> | |
51 | <li class="bold border-bottom {% if currentRoute == 'all' %}active{% endif %}"> | |
52 | <a class="waves-effect" href="{{ path('all') }}">{{ 'menu.left.all_articles'|trans }}</a> | |
53 | </li> | |
54 | <li class="bold border-bottom {% if currentRoute == 'tags' %}active{% endif %}"> | |
55 | <a class="waves-effect" href="{{ path('tag') }}">{{ 'menu.left.tags'|trans }}</a> | |
56 | </li> | |
57 | <li class="bold {% if currentRoute == 'config' %}active{% endif %}"> | |
58 | <a class="waves-effect" href="{{ path('config') }}">{{ 'menu.left.config'|trans }}</a> | |
59 | </li> | |
63e40f2d | 60 | {% if is_granted('ROLE_SUPER_ADMIN') %} |
0d42217e JB |
61 | <li class="bold border-bottom {% if currentRoute == 'craue_config_settings_modify' %}active{% endif %}"> |
62 | <a class="waves-effect" href="{{ path('craue_config_settings_modify') }}">{{ 'menu.left.internal_settings'|trans }}</a> | |
63 | </li> | |
63e40f2d | 64 | {% endif %} |
0d42217e JB |
65 | <li class="bold {% if currentRoute == 'import' %}active{% endif %}"> |
66 | <a class="waves-effect" href="{{ path('import') }}">{{ 'menu.left.import'|trans }}</a> | |
67 | </li> | |
68 | <li class="bold {% if currentRoute == 'developer' %}active{% endif %}"> | |
69 | <a class="waves-effect" href="{{ path('developer') }}">{{ 'menu.left.developer'|trans }}</a> | |
70 | </li> | |
71 | <li class="bold {% if currentRoute == 'howto' %}active{% endif %}"> | |
72 | <a class="waves-effect" href="{{ path('howto') }}">{{ 'menu.left.howto'|trans }}</a> | |
73 | </li> | |
74 | <li class="bold"> | |
75 | <a class="waves-effect" class="icon icon-power" href="{{ path('fos_user_security_logout') }}">{{ 'menu.left.logout'|trans }}</a> | |
76 | </li> | |
a6523cfe AD |
77 | </ul> |
78 | <div class="nav-wrapper nav-panels"> | |
79 | <a href="#" data-activates="slide-out" class="nav-panel-menu button-collapse"><i class="mdi-navigation-menu"></i></a> | |
80 | <div class="left action"> | |
a64f1d9f NL |
81 | {% block title %} |
82 | {% endblock %} | |
a6523cfe AD |
83 | </div> |
84 | <div class="input-field nav-panel-buttom"> | |
85 | <ul> | |
0d42217e JB |
86 | <li class="bold"> |
87 | <a title="{{ 'menu.top.add_new_entry'|trans }}" class="waves-effect" href="{{ path('new') }}" id="nav-btn-add"> | |
88 | <i class="mdi-content-add"></i> | |
89 | </a> | |
90 | </li> | |
0795d049 | 91 | <!--<li> |
0d42217e JB |
92 | <a title="{{ 'menu.top.search'|trans }}" class="waves-effect" href="javascript: void(null);" id="nav-btn-search"> |
93 | <i class="mdi-action-search"></i> | |
94 | </a> | |
0795d049 | 95 | </li>--> |
0d42217e JB |
96 | <li id="button_filters"> |
97 | <a title="{{ 'menu.top.filter_entries'|trans }}" href="#" data-activates="filters" class="nav-panel-menu button-collapse-right"> | |
98 | <i class="mdi-content-filter-list"></i> | |
99 | </a> | |
100 | </li> | |
101 | <li id="button_export"> | |
102 | <a title="{{ 'menu.top.export'|trans }}" class="nav-panel-menu button-collapse-right" href="#" data-activates="export" class="nav-panel-menu button-collapse-right"> | |
103 | <i class="mdi-file-file-download"></i> | |
104 | </a> | |
105 | </li> | |
a6523cfe AD |
106 | </ul> |
107 | </div> | |
108 | <form method="get" action="index.php"> | |
109 | <div class="input-field nav-panel-search" style="display: none"> | |
0d42217e | 110 | <input name="search" id="searchfield" type="search" required placeholder="{{ 'menu.search_form.input_label'|trans }}"> |
a6523cfe AD |
111 | <label for="search"><i class="mdi-action-search"></i></label> |
112 | <i class="mdi-navigation-close"></i> | |
113 | </div> | |
114 | </form> | |
053b9568 | 115 | <div class="input-field nav-panel-add" style="display: none"> |
0d42217e | 116 | {{ render(controller("WallabagCoreBundle:Entry:addEntryForm")) }} |
06fdfd02 | 117 | <label for="add" class="active"><i class="mdi-content-add"></i></label> |
053b9568 NL |
118 | <i class="mdi-navigation-close"></i> |
119 | </div> | |
a6523cfe AD |
120 | </div> |
121 | </nav> | |
122 | {% endblock %} | |
4e9f656e NL |
123 | |
124 | {% block footer %} | |
125 | <footer class="page-footer cyan darken-2"> | |
126 | <div class="container"> | |
127 | <div class="row"> | |
128 | <div class="col l6 s12"> | |
0d42217e | 129 | <h5 class="white-text">{{ 'footer.wallabag.elsewhere'|trans }}</h5> |
4e9f656e | 130 | <p class="grey-text text-lighten-4"> |
0d42217e JB |
131 | <a target="_blank" class="grey-text text-lighten-3" href="https://play.google.com/store/apps/details?id=fr.gaulupeau.apps.InThePoche" title="Android"> |
132 | <span class="icon-android"></span> | |
133 | </a> | |
134 | <a target="_blank" class="grey-text text-lighten-3" href="https://itunes.apple.com/app/id828331015" title="iOS"> | |
135 | <span class="icon-apple"></span> | |
136 | </a> | |
137 | <a target="_blank" class="grey-text text-lighten-3" href="https://addons.mozilla.org/ru/firefox/addon/wallabag/" title="Firefox"> | |
138 | <span class="icon-firefox"></span> | |
139 | </a> | |
140 | <a target="_blank" class="grey-text text-lighten-3" href="https://chrome.google.com/webstore/detail/wallabagit/peehlcgckcnclnjlndmoddifcicdnabm" title="Chrome"> | |
141 | <span class="icon-chrome"></span> | |
142 | </a> | |
4e9f656e NL |
143 | </p> |
144 | </div> | |
145 | <div class="col l4 offset-l2 s12"> | |
0d42217e JB |
146 | <h5 class="white-text">{{ 'footer.wallabag.social'|trans }}</h5> |
147 | <a target="_blank" class="grey-text text-lighten-3" href="https://twitter.com/wallabagapp" title="Twitter"> | |
148 | <span class="icon-twitter"></span> | |
149 | </a> | |
150 | <a target="_blank" class="grey-text text-lighten-3" href="https://plus.google.com/+WallabagOrg/posts" title="Google+"> | |
151 | <span class="icon-google-plus2"></span> | |
152 | </a> | |
153 | <a target="_blank" class="grey-text text-lighten-3" href="https://facebook.com/Wallabag" title="Facebook"> | |
154 | <span class="icon-facebook2"></span> | |
155 | </a> | |
4e9f656e NL |
156 | </div> |
157 | </div> | |
158 | </div> | |
159 | <div class="footer-copyright"> | |
160 | <div class="container"> | |
0d42217e JB |
161 | <p>{{ 'footer.wallabag.powered_by'|trans }} <a target="_blank" href="https://wallabag.org" class="grey-text text-lighten-4">wallabag</a></p> |
162 | <a class="grey-text text-lighten-4 right" href="{{ path('about') }}">{{ 'footer.wallabag.about'|trans }}</a> | |
4e9f656e NL |
163 | </div> |
164 | </div> | |
165 | </footer> | |
166 | {% endblock %} |