Parent: [3abb2e] (diff)

Download this file

page_history.html    43 lines (39 with data), 1.3 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{% extends 'jinja_wiki_master.html' %}
{% block title %}{{c.project.name}} / {{c.app.config.options.mount_label}} / {{title}}{% endblock %}
{% block header %}{{title}}{% endblock %}
{% block actions %}
<a href="." class="btn ico-l"><b class="ui-icon ui-icon-search"></b> <span>View Page</span></a>
{% endblock %}
{% block wiki_content %}
<form method="get" action="diff">
<input type="submit" value="Compare revisions"/>
<br/> <br/>
<table>
<thead>
<tr>
<th>Version</th>
<th>V1</th>
<th>V2</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
{% set i = 0 %}
{% for p in pages %}
<tr>
<td>{{p.version}} by {{p.author.display_name}}</td>
<td><input name="v1" type="radio" value="{{p.version}}"/></td>
<td><input name="v2" type="radio" value="{{p.version}}"/></td>
<td>
<a href="./?version={{p.version}}" class="btn">View Revision</a>
{% if i != 0 and has_artifact_access('edit', p)() %}
<a href="./revert?version={{p.version}}" class="btn">Revert to version {{p.version}}</a>
{% endif %}
</td>
</tr>
{% set i = i+1 %}
{% endfor %}
</tbody>
</table>
</form>
{% endblock %}