aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/tags.html.twig
blob: 0a3475ef080c932819df051a6bb8cd283e1ce8ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{% extends "WallabagCoreBundle::layout.html.twig" %}

{% block title %}{{ 'tag.page_title'|trans }}{% endblock %}

{% block content %}
    <div class="results clearfix">
        <div class="nb-results left">{{ 'tag.list.number_on_the_page'|transchoice(tags|length) }}</div>
    </div>

    <br />

    <div class="row">
        <ul class="card-tag-labels">
            {% for tag in tags %}
                <li title="{{tag.label}} ({{ tag.nbEntries }})" id="tag-{{ tag.id }}">
                    <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 %}
                    <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>
                    <a class="card-tag-rename" data-handler="tag-rename" href="javascript:void(0);">
                        <i class="material-icons">mode_edit</i>
                    </a>
                    {% endif %}
                    {% if app.user.config.feedToken %}
                        <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-rss"><i class="material-icons">rss_feed</i></a>
                    {% endif %}
                </li>
            {% endfor %}
        </ul>
    </div>

    <div>
        {% if nbEntriesUntagged == 0 %}
            {{ 'tag.list.no_untagged_entries'|trans }}
        {% else %}
            <a href="{{ path('untagged') }}">{{ 'tag.list.see_untagged_entries'|trans }} ({{nbEntriesUntagged}})</a>
        {% endif %}
    </div>
{% endblock %}