wallabag/src/Wallabag/CoreBundle/Resources/views/Tag/tags.html.twig

40 lines
2.2 KiB
Twig
Raw Normal View History

{% extends "@WallabagCore/layout.html.twig" %}
2015-08-18 16:18:35 +00:00
{% block title %}{{ 'tag.page_title'|trans }}{% endblock %}
2015-08-18 16:18:35 +00:00
{% block content %}
<div class="results clearfix">
2019-10-01 13:40:04 +00:00
{{ 'tag.list.number_on_the_page'|transchoice(tags|length) }}
2015-08-18 16:18:35 +00:00
</div>
<div class="row">
<ul class="card-tag-labels">
2019-10-01 13:40:04 +00:00
<li class="chip">
2022-05-03 21:28:20 +00:00
<a href="{{ path('untagged') }}">{{ 'tag.list.untagged'|trans }} ({{ nbEntriesUntagged }})</a>
2019-10-01 13:40:04 +00:00
</li>
{% for tag in tags %}
2022-05-03 21:28:20 +00:00
<li title="{{ tag.label }} ({{ tag.nbEntries }})" id="tag-{{ tag.id }}" class="chip">
<a href="{{ path('tag_entries', {'slug': tag.slug}) }}" class="card-tag-link" data-handle="tag-link">
{{ tag.label }}&nbsp;({{ tag.nbEntries }})
</a>
{% if renameForms is defined and renameForms[tag.id] is defined %}
2022-05-03 21:28:20 +00:00
<form class="card-tag-form hidden" data-handle="tag-rename-form" action="{{ path('tag_rename', {'slug': tag.slug}) }}" method="POST">
{{ form_widget(renameForms[tag.id].label, {'attr': {'value': tag.label}}) }}
{{ form_rest(renameForms[tag.id]) }}
</form>
2019-10-01 13:40:04 +00:00
<a class="card-tag-icon card-tag-rename" data-handler="tag-rename" href="javascript:void(0);">
<i class="material-icons">mode_edit</i>
</a>
{% endif %}
2022-05-03 21:28:20 +00:00
<a id="delete-{{ tag.slug }}" href="{{ path('tag_delete', {'slug': tag.slug}) }}" class="card-tag-icon card-tag-delete" onclick="return confirm('{{ 'tag.confirm.delete'|trans({'%name%': tag.label})|escape('js') }}')">
2022-06-15 07:51:17 +00:00
<i class="material-icons">delete</i>
</a>
2019-04-25 12:12:56 +00:00
{% if app.user.config.feedToken %}
2019-10-01 13:40:04 +00:00
<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>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
2015-08-18 16:18:35 +00:00
{% endblock %}