diff -r 9b3438382e53 -r fb5b1e6ad179 src/cm/templates/site/text_history.html --- a/src/cm/templates/site/text_history.html Wed Feb 03 15:42:56 2010 +0100 +++ b/src/cm/templates/site/text_history.html Fri Feb 05 12:23:29 2010 +0100 @@ -12,101 +12,139 @@ --> +
-
- {% endif %}
-{% endfor %}
-
+
-{% endif %}
+{% include "site/macros/paginator.html" %}
+
+
-{% if v2_nid %}
- | {% blocktrans %}Version{% endblocktrans %} | +{% blocktrans %}Selection{% endblocktrans %} | +{% blocktrans %}Title{% endblocktrans %} | +{% blocktrans %}Author{% endblocktrans %} | +{% blocktrans %}Created{% endblocktrans %} | +{% blocktrans %}# comments{% endblocktrans %} | +|||||
|---|---|---|---|---|---|---|---|---|---|---|
| {% endif %} + | #{{ forloop.counter0|add:page_obj.start_index|invneg:paginator.count|add:"1" }} | ++ | + |
+ {{ text_version.title }}
+
+
+
+ {% blocktrans %}View{% endblocktrans %}
+ {% if text_version.get_previous_version %}| {% blocktrans %}Compare with previous version{% endblocktrans %}{% endif %}
+ {% if can_edit_text %} | {% blocktrans %}Revert to this version{% endblocktrans %}{% endif %}
+ {% comment %}{% if can_delete_text %}{% blocktrans %}Delete{% endblocktrans %}
+
+ {% endif %}
+ {% endcomment %}
+
+
+ |
+ {{ text_version.get_name }} | +{{ text_version.created|local_date }} | +{{ text_version|nb_comments:request }} | -{% if v2_nid %} -|||
|
- {{ version1.title }}
- - {% blocktrans with version1.created|local_date:tz as date and v1_nid as version_number %}Version #{{ version_number }} created on {{ date }}{% endblocktrans %} - |
- - |
- {{ version2.title }}
- - {% blocktrans with version2.created|local_date:tz as date and v2_nid as version_number %}Version #{{ version_number }} created on {{ date }}{% endblocktrans %} - |
-