Show actual comment number. Only shows plural for now (ticket #712)
authorJef van Schendel <mail@jefvanschendel.nl>
Sat, 17 Dec 2011 23:31:39 +0000 (00:31 +0100)
committerJef van Schendel <mail@jefvanschendel.nl>
Sat, 17 Dec 2011 23:31:39 +0000 (00:31 +0100)
mediagoblin/templates/mediagoblin/user_pages/media.html

index 2c8c5033d84e4822d2379d11abcff90fec93632e..b9e31667d1ff73540647ce8b63d977709656532f 100644 (file)
@@ -81,7 +81,7 @@
         <a class="button_action" href="{{ delete_url }}">{% trans %}Delete{% endtrans %}</a>
       {% endif %}
     </p>
-    <h3>{% trans %}23 comments{% endtrans %}
+    <h3>{% trans comment_count=comments.count() -%}{{ comment_count }} comments{%- endtrans %}
       <div class="right_align">
         <a
           {% if not request.user %}