[c83adb]: ForgeBlog / forgeblog / templates / blog / post_history.html Maximize Restore History

Download this file

post_history.html    41 lines (36 with data), 1.4 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
{% extends g.theme.master %}
{% block title %}{{c.project.name}} / {{c.app.config.options.mount_label}} / {{title}}{% endblock %}
{% block header %}{{title}}{% endblock %}
{% block content %}
<div class="grid-20">
<form method="get" action="diff">
<div class="grid-19"><input type="submit" value="Compare revisions"/></div>
<div style="clear:both"></div>
<table>
<thead>
<tr>
<th>Version</th>
<th>V1</th>
<th>V2</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
{% for p in posts %}
<tr>
<td>{{p.version}} by {{p.author.display_name|e}}</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 loop.index0 != 0 and h.has_access(p, 'edit')() %}
<a href="./revert?version={{p.version}}" class="btn">Revert to version {{p.version}}</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</form>
</div>
{% endblock %}