|
145
|
1 |
{% extends "site/layout/base_text.html" %} |
|
|
2 |
{% load com %} |
|
|
3 |
{% load i18n %} |
|
|
4 |
{% load local_perms %} |
|
|
5 |
{% block main %} |
|
|
6 |
|
|
|
7 |
{% get_local_text_perm request text can_edit_text as can_edit_text %} |
|
|
8 |
|
|
|
9 |
<script type="text/javascript"> |
|
|
10 |
<!-- |
|
|
11 |
tb_conf['current_tab'] = 'history'; |
|
|
12 |
--> |
|
|
13 |
</script> |
|
|
14 |
|
|
|
15 |
<div id="text_history" class="tab-meta"> |
|
|
16 |
|
|
|
17 |
<script type="text/javascript"> |
|
|
18 |
<!-- |
|
|
19 |
$(function() { |
|
|
20 |
$(".hidden-text-actions").css('visibility','hidden'); |
|
|
21 |
}) ; |
|
|
22 |
--> |
|
|
23 |
|
|
|
24 |
</script> |
|
|
25 |
|
|
|
26 |
|
|
|
27 |
<ul class="sub_list"> |
|
|
28 |
<li><a href="{% url text-history text.key %}">{% blocktrans %}Version list{% endblocktrans %}</a></li> |
|
|
29 |
<li> / </li> |
|
178
|
30 |
{% if v1.get_previous_version %}<li> <a href="{% url text-history-compare text.key v1.get_previous_version.key v1.key %}"><img style="vertical-align: text-bottom;" title="{% blocktrans %}Previous modification{% endblocktrans %}" alt="{% blocktrans %}Previous modification{% endblocktrans %}" src="{{ CM_MEDIA_PREFIX }}img/plus-minus-left.gif"></img></a></li>{% endif %} |
|
|
31 |
<li> <a href="{% url text-history-version text.key v1.key %}" alt="{% blocktrans with v1.get_version_number as version_number %}Version {{ version_number }}{% endblocktrans %}">«{{ v1.get_version_number }}</a></li> |
|
|
32 |
<li class="active_sub"> {% blocktrans with v1.get_version_number as version_1_number and v2.get_version_number as version_2_number %}Comparison between version #{{ version_1_number }} and #{{ version_2_number }}{% endblocktrans %}</li> |
|
|
33 |
{% ifnotequal v2.key text.last_text_version.key %}<li> <a href="{% url text-history-version text.key v2.key %}" alt="{% blocktrans with v2.get_version_number as version_number %}Version {{ version_number }}{% endblocktrans %}">{{ v2.get_version_number }}»</a></li> |
|
|
34 |
{% if v1.get_next_version %}<li> <a href="{% url text-history-compare text.key v2.key v2.get_next_version.key %}"><img style="vertical-align: text-bottom;" title="{% blocktrans %}Next modification{% endblocktrans %}" alt="{% blocktrans %}Next modification{% endblocktrans %}" src="{{ CM_MEDIA_PREFIX }}img/plus-minus-right.gif"></img></a></li>{% endif %} |
|
|
35 |
|
|
|
36 |
{% endifnotequal %} |
|
|
37 |
<li> <a href="{% url text-history-version text.key text.last_text_version.key %}" alt="{% blocktrans %}Most recent version{% endblocktrans %}">{{ text.last_text_version.get_version_number }}»»</a></li> |
|
145
|
38 |
</ul> |
|
|
39 |
|
|
|
40 |
<div style="clear:both;"></div> |
|
|
41 |
|
|
|
42 |
{% autoescape off %} |
|
|
43 |
{% if empty %} |
|
|
44 |
<center>{% blocktrans %}No differences{% endblocktrans %}</center> |
|
|
45 |
{% else %} |
|
|
46 |
{{ content }} |
|
|
47 |
{% endif %} |
|
|
48 |
{% endautoescape %} |
|
|
49 |
|
|
|
50 |
</div> |
|
|
51 |
{% endblock %} |