| 1 |
<?python |
| 2 |
page_action = 'log' |
| 3 |
?> |
| 4 |
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude" |
| 5 |
xmlns:py="http://genshi.edgewall.org/"><xi:include href="layout.html" /> |
| 6 |
<head> |
| 7 |
<title>Revisions for “${page.title}”</title> |
| 8 |
</head> |
| 9 |
<body> |
| 10 |
<h1>Revisions for “<a href="${href(page.name)}">${page.title}</a>”</h1> |
| 11 |
<p> |
| 12 |
In this list you can see all the revisions of the requested page. |
| 13 |
</p> |
| 14 |
<form action="${href(page.name)}" method="get"> |
| 15 |
<input type="hidden" name="action" value="diff" /> |
| 16 |
<table class="revisions"> |
| 17 |
<tr> |
| 18 |
<th class="timestamp">Date</th> |
| 19 |
<th class="change_note">Change Note</th> |
| 20 |
<th class="diff"><input type="submit" value="Diff" /></th> |
| 21 |
<th class="actions">Actions</th> |
| 22 |
</tr> |
| 23 |
<tr py:for="idx, revision in enumerate(page.revisions)" |
| 24 |
class="${'even' if idx % 2 == 1 else 'odd'}"> |
| 25 |
<td class="timestamp">${format_datetime(revision.timestamp)}</td> |
| 26 |
<td class="change_note">${revision.change_note}</td> |
| 27 |
<td class="diff"> |
| 28 |
<input type="radio" name="old" value="${revision.revision_id}" |
| 29 |
checked="${'checked' if idx == 1 else None}" /> |
| 30 |
<input type="radio" name="new" value="${revision.revision_id}" |
| 31 |
checked="${'checked' if idx == 0 else None}" /> |
| 32 |
</td> |
| 33 |
<td class="actions"> |
| 34 |
<a href="${href(page.name, rev=revision.revision_id)}">show</a> |
| 35 |
<py:if test="idx">| |
| 36 |
<a href="${href(page.name, rev=revision.revision_id, |
| 37 |
action='revert')}">revert</a> |
| 38 |
</py:if> |
| 39 |
</td> |
| 40 |
</tr> |
| 41 |
</table> |
| 42 |
</form> |
| 43 |
</body> |
| 44 |
</html> |