diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-08-07 18:17:23 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-08-07 18:17:23 +0200 |
commit | 3f3fbef11f86968a991426c2a052ad42e0c16d44 (patch) | |
tree | 23c1796279ba1d44e17ed15922db737822484bad /src/Wallabag/CoreBundle/Resources/views/Tag/tags.html.twig | |
parent | 6ecdd48a3fadf076e062b6c634ae80f261c43e23 (diff) | |
download | wallabag-3f3fbef11f86968a991426c2a052ad42e0c16d44.tar.gz wallabag-3f3fbef11f86968a991426c2a052ad42e0c16d44.tar.zst wallabag-3f3fbef11f86968a991426c2a052ad42e0c16d44.zip |
Add tags list display
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/Tag/tags.html.twig')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/Tag/tags.html.twig | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/Tag/tags.html.twig b/src/Wallabag/CoreBundle/Resources/views/Tag/tags.html.twig new file mode 100644 index 00000000..7c2a9f45 --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/Tag/tags.html.twig | |||
@@ -0,0 +1,27 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title "Tags" %} | ||
4 | |||
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 %} | ||
22 | <div class="messages warning"><p>{% trans %}No tags found.{% endtrans %}</p></div> | ||
23 | {% else %} | ||
24 | {% for tag in tags %}{{tag.title}} | ||
25 | {% endfor %} | ||
26 | {% endif %} | ||
27 | {% endblock %} | ||