diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig index 668824bc..bf38bff8 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig | |||
@@ -91,6 +91,24 @@ | |||
91 | {% endfor %} | 91 | {% endfor %} |
92 | </ul> | 92 | </ul> |
93 | 93 | ||
94 | <!-- Export --> | ||
95 | <div id="export" class="side-nav fixed right-aligned"> | ||
96 | {% set currentRoute = app.request.attributes.get('_route') %} | ||
97 | {% if currentRoute == 'homepage' %} | ||
98 | {% set currentRoute = 'unread' %} | ||
99 | {% endif %} | ||
100 | <h4 class="center">{% trans %}Export{% endtrans %}</h4> | ||
101 | <ul> | ||
102 | <li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'epub' }) }}">{% trans %}EPUB{% endtrans %}</a></li> | ||
103 | <li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'mobi' }) }}">{% trans %}MOBI{% endtrans %}</a></li> | ||
104 | <li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'pdf' }) }}">{% trans %}PDF{% endtrans %}</a></li> | ||
105 | <li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'xml' }) }}">{% trans %}XML{% endtrans %}</a></li> | ||
106 | <li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'json' }) }}">{% trans %}JSON{% endtrans %}</a></li> | ||
107 | <li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'csv' }) }}">{% trans %}CSV{% endtrans %}</a></li> | ||
108 | <li class="bold"><del><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'txt' }) }}">{% trans %}TXT{% endtrans %}</a></del></li> | ||
109 | </ul> | ||
110 | </div> | ||
111 | |||
94 | <!-- Filters --> | 112 | <!-- Filters --> |
95 | <div id="filters" class="side-nav fixed right-aligned"> | 113 | <div id="filters" class="side-nav fixed right-aligned"> |
96 | <form action="{{ path('all') }}"> | 114 | <form action="{{ path('all') }}"> |