eyecandy for programmers

This commit is contained in:
Jakob Kramer 2011-11-20 21:30:46 +01:00
parent 9404a9fed2
commit a00f1c1e1c

View File

@ -20,9 +20,11 @@
<p>{% trans %}Tagged with{% endtrans %} <p>{% trans %}Tagged with{% endtrans %}
{% for tag in media.tags %} {% for tag in media.tags %}
{% if loop.last %} {% if loop.last %}
{# the 'and' should only appear if there is more than one tag #}
{% if media.tags|length > 1 %} {% if media.tags|length > 1 %}
{% trans %}and{% endtrans %} {% trans %}and{% endtrans %}
{% endif %} {% endif %}
<a href="{{ request.urlgen( <a href="{{ request.urlgen(
'mediagoblin.listings.tags_listing', 'mediagoblin.listings.tags_listing',
tag=tag['slug']) }}">{{ tag['name'] }}</a>. tag=tag['slug']) }}">{{ tag['name'] }}</a>.