fix display

This commit is contained in:
Nicolas Lœuillet 2015-08-07 20:07:39 +02:00
parent 3f3fbef11f
commit 47e12c3677

View file

@ -3,25 +3,11 @@
{% block title "Tags" %}
{% block content %}
{% block pager %}
{% if tags is not empty %}
<div class="results">
<div class="nb-results">{{ tags.count }} {% trans %}tags{% endtrans %}</div>
<div class="pagination">
{% for p in range(1, tags.nbPages) %}
<li>
<a href="{{ path(app.request.attributes.get('_route'), {'page': p}) }}" class="{{ currentPage == p ? 'current':''}}" >{{ p }}</a>
</li>
{% endfor %}
</div>
</div>
{% endif %}
{% endblock %}
{% if tags is empty %}
<div class="messages warning"><p>{% trans %}No tags found.{% endtrans %}</p></div>
{% else %}
{% for tag in tags %}{{tag.title}}
{% for tag in tags %}
{{tag.label}}
{% endfor %}
{% endif %}
{% endblock %}