diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig index 54bba9a6..8a49190e 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig | |||
@@ -18,6 +18,67 @@ | |||
18 | {% block header %} | 18 | {% block header %} |
19 | {% endblock %} | 19 | {% endblock %} |
20 | 20 | ||
21 | {% block messages %} | ||
22 | {% for flashMessage in app.session.flashbag.get('notice') %} | ||
23 | <script> | ||
24 | Materialize.toast('{{ flashMessage }}', 4000); | ||
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"> | ||
34 | <a class="waves-effect" title="{% trans %}Back to unread articles{% endtrans %}" href="{{ path('unread') }}"> | ||
35 | <img src="{{ asset('themes/baggy/img/logo-other_themes.png') }}" alt="wallabag logo" /> | ||
36 | </a> | ||
37 | </li> | ||
38 | {% endblock %} | ||
39 | |||
40 | {% set currentRoute = app.request.attributes.get('_route') %} | ||
41 | |||
42 | <li class="bold {% if currentRoute == 'unread' or currentRoute == 'homepage' %}active{% endif %}"><a class="waves-effect" href="{{ path('unread') }}">{% trans %}unread{% endtrans %}</a></li> | ||
43 | <li class="bold {% if currentRoute == 'starred' %}active{% endif %}"><a class="waves-effect" href="{{ path('starred') }}">{% trans %}favorites{% endtrans %}</a></li> | ||
44 | <li class="bold {% if currentRoute == 'archive' %}active{% endif %}"><a class="waves-effect" href="{{ path('archive') }}">{% trans %}archive{% endtrans %}</a></li> | ||
45 | <li class="bold border-bottom {% if currentRoute == 'tags' %}active{% endif %}"><a class="waves-effect" href="?view=tags">{% trans %}tags{% endtrans %}</a></li> | ||
46 | <li class="bold {% if currentRoute == 'config' %}active{% endif %}"><a class="waves-effect" href="{{ path('config') }}">{% trans %}config{% endtrans %}</a></li> | ||
47 | <li class="bold"><a class="waves-effect" class="icon icon-power" href="{{ path('logout') }}" title="{% trans %}logout{% endtrans %}">{% trans %}logout{% endtrans %}</a></li> | ||
48 | </ul> | ||
49 | <div class="nav-wrapper nav-panels"> | ||
50 | <a href="#" data-activates="slide-out" class="nav-panel-menu button-collapse"><i class="mdi-navigation-menu"></i></a> | ||
51 | <div class="left action"> | ||
52 | {% if currentRoute == 'unread' or currentRoute == 'homepage' %}{% trans %}Unread{% endtrans %}{% endif %} | ||
53 | {% if currentRoute == 'starred' %}{% trans %}Starred{% endtrans %}{% endif %} | ||
54 | {% if currentRoute == 'archive' %}{% trans %}Archive{% endtrans %}{% endif %} | ||
55 | {% if currentRoute == 'tags' %}{% trans %}Tags{% endtrans %}{% endif %} | ||
56 | {% if currentRoute == 'config' %}{% trans %}Config{% endtrans %}{% endif %} | ||
57 | </div> | ||
58 | <div class="input-field nav-panel-buttom"> | ||
59 | <ul> | ||
60 | <li class="bold"><a class="waves-effect" href="{{ path('new_entry') }}" id="nav-btn-add"><i class="mdi-content-add"></i></a></li> | ||
61 | <li><a class="waves-effect" href="javascript: void(null);" id="nav-btn-search"><i class="mdi-action-search"></i></a> | ||
62 | </ul> | ||
63 | </div> | ||
64 | <form method="get" action="index.php"> | ||
65 | <div class="input-field nav-panel-search" style="display: none"> | ||
66 | <input name="search" id="searchfield" type="search" required placeholder="{% trans %}Enter your search here{% endtrans %}"> | ||
67 | <label for="search"><i class="mdi-action-search"></i></label> | ||
68 | <i class="mdi-navigation-close"></i> | ||
69 | </div> | ||
70 | </form> | ||
71 | <!--<form name="entry" method="post" action="{{ path('new_entry') }}"> | ||
72 | <div class="input-field nav-panel-add" style="display: none"> | ||
73 | <input id="add entry_url" name="entry[url]" type="search" required placeholder="{% trans %}Enter your link here{% endtrans %}"> | ||
74 | <label for="add"><i class="mdi-content-add"></i></label> | ||
75 | <i class="mdi-navigation-close"></i> | ||
76 | </div> | ||
77 | </form>--> | ||
78 | </div> | ||
79 | </nav> | ||
80 | {% endblock %} | ||
81 | |||
21 | {% block footer %} | 82 | {% block footer %} |
22 | <footer class="page-footer cyan darken-2"> | 83 | <footer class="page-footer cyan darken-2"> |
23 | <div class="container"> | 84 | <div class="container"> |