Change tag list from a list to a paragraph. Wrap text for translation.
authorJef van Schendel <mail@jefvanschendel.nl>
Sun, 20 Nov 2011 15:18:27 +0000 (16:18 +0100)
committerJef van Schendel <mail@jefvanschendel.nl>
Sun, 20 Nov 2011 15:18:27 +0000 (16:18 +0100)
mediagoblin/templates/mediagoblin/utils/tags.html

index b3211bd90ff6e1f9143338a6af23c98957474c71..19ca8d2a4d34735e3e103a3ef10c3b4a88b5cf3b 100644 (file)
 #}
 
 {% block tags_content -%}
-  <h3>Tags</h3>
-  <ul class="mediaentry_tags">
+  <p>{% trans %}Tagged with{% endtrans %}
     {% for tag in media.tags %}
-      <li class="tag">
-        <a href="{{ request.urlgen(
+      {% if loop.last %}
+      {% trans %}and{% endtrans %} <a href="{{ request.urlgen(
                         'mediagoblin.listings.tags_listing',
-                        tag=tag['slug']) }}">{{ tag['name'] }}</a></li>
+                        tag=tag['slug']) }}">{{ tag['name'] }}</a>.
+      {% elif loop.revindex==2 %}
+      <a href="{{ request.urlgen(
+                        'mediagoblin.listings.tags_listing',
+                        tag=tag['slug']) }}">{{ tag['name'] }}</a> 
+      {% else %}<a href="{{ request.urlgen(
+                        'mediagoblin.listings.tags_listing',
+                        tag=tag['slug']) }}">{{ tag['name'] }}</a>, 
+      {% endif %}
     {% endfor %}
-  </ul>
+  </p>
 {% endblock %}