History feature now fully working; Diff feature close but not there yet.

This commit is contained in:
Simon Brooke 2015-01-11 11:08:17 +00:00
parent b0619a58d0
commit 62b325cb68
4 changed files with 40 additions and 8 deletions

View file

@ -5,6 +5,11 @@
<tr>
<th>When</th><th>What</th><th>Version</th><th>Changes</th>
</tr>
<tr>
<td>Now</td><td></td>
<td><a href="wiki?content={{page}}">[current]</a></td>
<td>[no changes]</td>
<tr>
{% for entry in history %}
<tr>
<td>
@ -14,10 +19,10 @@
{{entry.message}}
</td>
<td>
<a href="history-version?id={{entry.id}}">Show version</a>
<a href="version?page={{page}}&amp;version={{entry.id}}">Show version</a>
</td>
<td>
<a href="history-changes?id={{entry.id}}">What's changed?</a>
<a href="diff?page={{page}}&amp;version={{entry.id}}">What's changed?</a>
</td>
</tr>
{% endfor %}

View file

@ -2,7 +2,7 @@
{% block content %}
<div id="content" class="wiki">
<div class="minor-controls">
<a href="history?page={{title}}">History</a>
<a href="history?page={{page}}">History</a>
</div>
{{content|safe}}
</div>