don't use 'and' anymore, if there is only one tag

This commit is contained in:
Jakob Kramer 2011-11-20 21:15:07 +01:00
parent 5dbeda8a0f
commit 9404a9fed2

View File

@ -20,7 +20,10 @@
<p>{% trans %}Tagged with{% endtrans %}
{% for tag in media.tags %}
{% if loop.last %}
{% trans %}and{% endtrans %} <a href="{{ request.urlgen(
{% if media.tags|length > 1 %}
{% trans %}and{% endtrans %}
{% endif %}
<a href="{{ request.urlgen(
'mediagoblin.listings.tags_listing',
tag=tag['slug']) }}">{{ tag['name'] }}</a>.
{% elif loop.revindex==2 %}