{% 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> </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 %}