Remove link when there are no untagged articles

This commit is contained in:
Jeremy Benoist
2019-06-06 13:34:20 +02:00
parent 0f2d24feb4
commit 35c7819cb6
17 changed files with 26 additions and 4 deletions

View File

@ -31,6 +31,10 @@
</ul>
<div>
<a href="{{ path('untagged') }}">{{ 'tag.list.see_untagged_entries'|trans }} ({{untagged}})</a>
{% 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 %}

View File

@ -34,6 +34,10 @@
</div>
<div>
<a href="{{ path('untagged') }}">{{ 'tag.list.see_untagged_entries'|trans }} ({{untagged}})</a>
{% 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 %}