Change wording in tags.html
[mediagoblin.git] / mediagoblin / templates / mediagoblin / utils / tags.html
index 32db6e31126d45c681ef8d9a1695cf5196e6b34e..1f5874113d5a909800da399d5ec82882d82f85f2 100644 (file)
@@ -1,6 +1,6 @@
 {#
 # GNU MediaGoblin -- federated, autonomous media hosting
-# Copyright (C) 2011 Free Software Foundation, Inc
+# Copyright (C) 2011 MediaGoblin contributors.  See AUTHORS.
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU Affero General Public License as published by
 #}
 
 {% block tags_content -%}
-  <h3>Tags</h3>
-  <ul class="mediaentry_tags">
+  <p>{% trans %}View more media tagged with{% endtrans %}
     {% for tag in media.tags %}
-      <li class="tag">
+      {% if loop.last %}
+        {# the 'and' should only appear if there is more than one tag #}
+        {% if media.tags|length > 1 %}
+          {% trans %}or{% endtrans %}
+        {% endif %}
         <a href="{{ request.urlgen(
-                        'mediagoblin.listings.tags_listing',
-                        tag=tag['slug']) }}">{{ tag['name'] }}</li>
+                          'mediagoblin.listings.tags_listing',
+                          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 %}