diff -r 000000000000 -r 40c8f766c9b8 src/cm/templates/site/text_history.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cm/templates/site/text_history.html Mon Nov 23 15:14:29 2009 +0100 @@ -0,0 +1,101 @@ +{% extends "site/layout/base_text.html" %} +{% load com %} +{% load i18n %} +{% load local_perms %} +{% block main %} + +{% get_local_text_perm request text can_edit_text as can_edit_text %} + + + + + +
+

{% blocktrans %}Versions:{% endblocktrans %}

+ + +{% for v1, v2, color in paired_versions %} + + {{ forloop.counter }} + + {% if v2 %} + + + + + + {% endif %} +{% endfor %} + + +

{% blocktrans %}Authors:{% endblocktrans %}

+{% for author,color in author_colors %} + {{ author }} +{% empty %} +{% blocktrans %}authors{% endblocktrans %} +{% endfor %} + +{% if can_edit_text %} +

{% blocktrans %}Actions:{% endblocktrans %}

+
{% blocktrans %}Revert to version #{{ v1_nid }}:{% endblocktrans %}
+{% endif %} + +{% 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 %} +

{% blocktrans with version1.created|local_date:tz as date and v1_nid as version_number and version1.title as title %}Version #{{ version_number }} entitled "{{ title }}" and created on {{ date }}:{% endblocktrans %}

+{% endif %} +{% autoescape off %} + +{% if v2_nid %} +
+ + + + + + +
+ {% blocktrans with v1_nid as version_number and version1.title as title %}{{ title }} / version #{{ version_number }}{% endblocktrans %} +
+ {% blocktrans with version1.created|local_date:tz as date %}created {{ date }}{% endblocktrans %} +
+ {% blocktrans with v2_nid as version_number and version2.title as title %}{{ title }} / version #{{ version_number }}{% endblocktrans %} +
+ {% blocktrans with version2.created|local_date:tz as date %}created {{ date }}{% endblocktrans %} + +
+{% endif %} + +{{ content }} +{% endautoescape %} +
+{% endblock %}