src/cm/templates/site/macros/text_meta.html
author Simon Descarpentries <sid1@sopinspace.com>
Fri, 05 Aug 2011 17:12:15 +0200
changeset 373 f6fe14eb51bc
parent 123 a646958c787c
permissions -rw-r--r--
Add a title attribute on comment scopes to indicate the number of comments in the scope. Also ensure that the last c-count-x defined color class is set even if there are more than 25 comments in the scope.

{% load i18n %}
{% load com %}
{% nb_comments text as nb_comments %}

<span class="metadata">
<abbr title="{{ text.last_text_version.created|local_date:tz }}">{% blocktrans with text.last_text_version.created|timesince as duration %}last modified {{ duration }} ago{% endblocktrans %}</abbr>
/
{% blocktrans count text.get_versions_number as versions_number %}1 version{% plural%}{{ versions_number }} versions{% endblocktrans %}
</span>