|
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> |
|
178
|
29 |
<li> /</li> |
|
145
|
30 |
{% if text_version.get_previous_version %} |
|
178
|
31 |
<li> <a href="{% url text-history-version text.key text_version.get_previous_version.key %}" title="{% blocktrans %}Previous version{% endblocktrans %}" >«{{ text_version.get_previous_version.get_version_number }}</a></li> |
|
|
32 |
<li> <a href="{% url text-history-compare text.key text_version.get_previous_version.key text_version.key %}"><img style="vertical-align: text-bottom;" title="{% blocktrans %}Compare with previous version{% endblocktrans %}" alt="title="{% blocktrans %}Compare with previous version{% endblocktrans %}" src="{{ CM_MEDIA_PREFIX }}img/plus-minus-left.gif"></img></a></li> |
|
145
|
33 |
{% endif %} |
|
178
|
34 |
<li class="active_sub">{% blocktrans with text_version.get_version_number as version_number %}Version {{ version_number }}{% endblocktrans %}</li> |
|
145
|
35 |
{% if text_version.get_next_version %} |
|
178
|
36 |
<li> <a href="{% url text-history-compare text.key text_version.key text_version.get_next_version.key %}"><img style="vertical-align: text-bottom;" title="{% blocktrans %}Compare with next version{% endblocktrans %}" alt="{% blocktrans %}Compare with next version{% endblocktrans %}" src="{{ CM_MEDIA_PREFIX }}img/plus-minus-right.gif"></img></a></li> |
|
|
37 |
<li> <a href="{% url text-history-version text.key text_version.get_next_version.key %}" title="{% blocktrans %}Next version{% endblocktrans %}" >{{ text_version.get_next_version.get_version_number }}»</a></li> |
|
|
38 |
<li> <a href="{% url text-history-version text.key text.last_text_version.key %}" title="{% blocktrans %}Most recent version{% endblocktrans %}">{{ text.last_text_version.get_version_number }}»»</a></li> |
|
145
|
39 |
{% endif %} |
|
|
40 |
</ul> |
|
|
41 |
|
|
|
42 |
<div style="clear:both;"></div> |
|
|
43 |
|
|
182
|
44 |
<h2>{{ text_version.title }}</h2> |
|
|
45 |
{% blocktrans with text_version.get_name as author %}by {{ author }}{% endblocktrans %} |
|
|
46 |
|
|
145
|
47 |
<div id="autoexpand_text_view_frame_container"> |
|
|
48 |
{% autoescape off %} |
|
|
49 |
{{ embed_code }} |
|
|
50 |
{% endautoescape %} |
|
|
51 |
</div> |
|
|
52 |
|
|
|
53 |
</div> |
|
|
54 |
{% endblock %} |