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 @@ --> +
+ -
-
{% blocktrans %}Versions:{% endblocktrans %} -{% for author,color in author_colors %} - {{ author }} -{% endfor %} -
- - -{% for v1, v2, color in paired_versions %} - - {{ forloop.counter }} + - {% if v2 %} - - - - - - {% endif %} -{% endfor %} - +
+ + -{% if can_edit_text %}
-
-
-{% endif %} +{% include "site/macros/paginator.html" %} + +
-{% if v2_nid %} -

{% blocktrans with v1_nid as v1_nid and v1_nid as v1_nid %}Differences between version #{{ v1_nid }} and version #{{ v2_nid }}:{% endblocktrans %}

-{% else %} -

{{ version1.title }}

- -

-{% endif %} -{% autoescape off %} + + + + + + + + + + + + + {% for text_version in object_list %} + + {% get_local_text_perm request text can_edit_text as can_edit_text %} + {% get_local_text_perm request text can_delete_text as can_delete_text %} + {% get_local_text_perm request text can_manage_text as can_manage_text %} + + + {% if can_manage_workspace %}{% endif %} + + + + + + + -{% if v2_nid %} -
-
{% blocktrans %}Version{% endblocktrans %}{% blocktrans %}Selection{% endblocktrans %}{% blocktrans %}Title{% endblocktrans %}{% blocktrans %}Author{% endblocktrans %}{% blocktrans %}Created{% endblocktrans %}{% blocktrans %}# comments{% endblocktrans %}
#{{ 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 }}
- - - - - + + {% endfor %} +
- {{ version1.title }} -
- -
- {{ version2.title }} -
- -
-{% endif %} - -{% if is_diff %} -{{ content }} -{% else %} -
{% blocktrans %}No differences{% endblocktrans %}
-{% endif %} + -{% if embed_code %} -
-{{ embed_code }} -{% endif %} -
- -{% endautoescape %}
{% endblock %}