diff options
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/Tag/tags.html.twig | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/Tag/tags.html.twig b/src/Wallabag/CoreBundle/Resources/views/Tag/tags.html.twig index 7c2a9f45..c2a461b8 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Tag/tags.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/Tag/tags.html.twig | |||
@@ -3,25 +3,11 @@ | |||
3 | {% block title "Tags" %} | 3 | {% block title "Tags" %} |
4 | 4 | ||
5 | {% block content %} | 5 | {% block content %} |
6 | {% block pager %} | ||
7 | {% if tags is not empty %} | ||
8 | <div class="results"> | ||
9 | <div class="nb-results">{{ tags.count }} {% trans %}tags{% endtrans %}</div> | ||
10 | <div class="pagination"> | ||
11 | {% for p in range(1, tags.nbPages) %} | ||
12 | <li> | ||
13 | <a href="{{ path(app.request.attributes.get('_route'), {'page': p}) }}" class="{{ currentPage == p ? 'current':''}}" >{{ p }}</a> | ||
14 | </li> | ||
15 | {% endfor %} | ||
16 | </div> | ||
17 | </div> | ||
18 | {% endif %} | ||
19 | {% endblock %} | ||
20 | |||
21 | {% if tags is empty %} | 6 | {% if tags is empty %} |
22 | <div class="messages warning"><p>{% trans %}No tags found.{% endtrans %}</p></div> | 7 | <div class="messages warning"><p>{% trans %}No tags found.{% endtrans %}</p></div> |
23 | {% else %} | 8 | {% else %} |
24 | {% for tag in tags %}{{tag.title}} | 9 | {% for tag in tags %} |
10 | {{tag.label}} | ||
25 | {% endfor %} | 11 | {% endfor %} |
26 | {% endif %} | 12 | {% endif %} |
27 | {% endblock %} | 13 | {% endblock %} |