]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/tags.html.twig
Improved tags list for material view
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / material / Tag / tags.html.twig
CommitLineData
e68d9179
NL
1{% extends "WallabagCoreBundle::layout.html.twig" %}
2
0d42217e 3{% block title %}{{ 'tag.page_title'|trans }}{% endblock %}
e68d9179
NL
4
5{% block content %}
6 <div class="results clearfix">
54345778 7 {{ 'tag.list.number_on_the_page'|transchoice(tags|length) }}
e68d9179 8 </div>
28bb4890 9
28bb4890
JB
10 <div class="row">
11 <ul class="card-tag-labels">
54345778
NL
12 <li class="chip">
13 <a href="{{ path('untagged') }}">{{ 'tag.list.untagged'|trans }} ({{nbEntriesUntagged}})</a>
14 </li>
28bb4890 15 {% for tag in tags %}
54345778 16 <li title="{{tag.label}} ({{ tag.nbEntries }})" id="tag-{{ tag.id }}" class="chip">
9b0aef91
SH
17 <a href="{{ path('tag_entries', {'slug': tag.slug}) }}" class="card-tag-link" data-handle="tag-link">
18 {{ tag.label }}&nbsp;({{ tag.nbEntries }})
19 </a>
20 {% if renameForms is defined and renameForms[tag.id] is defined %}
21 <form class="card-tag-form hidden" data-handle="tag-rename-form" action="{{ path('tag_rename', {'slug': tag.slug})}}" method="POST">
22 {{ form_widget(renameForms[tag.id].label, {'attr': {'value': tag.label}}) }}
23 {{ form_rest(renameForms[tag.id]) }}
24 </form>
54345778 25 <a class="card-tag-icon card-tag-rename" data-handler="tag-rename" href="javascript:void(0);">
9b0aef91
SH
26 <i class="material-icons">mode_edit</i>
27 </a>
28 {% endif %}
f277bc04 29 {% if app.user.config.feedToken %}
54345778 30 <a rel="alternate" type="application/atom+xml" href="{{ path('tag_feed', {'username': app.user.username, 'token': app.user.config.feedToken, 'slug': tag.slug}) }}" class="card-tag-icon"><i class="material-icons">rss_feed</i></a>
8c598094 31 {% endif %}
28bb4890
JB
32 </li>
33 {% endfor %}
34 </ul>
35 </div>
36
b6520f0b 37 <div>
54345778 38
b6520f0b 39 </div>
e68d9179 40{% endblock %}