mirror of
https://github.com/journeyman-cc/smeagol.git
synced 2026-04-12 18:05:06 +00:00
History feature now fully working; Diff feature close but not there yet.
This commit is contained in:
parent
b0619a58d0
commit
62b325cb68
4 changed files with 40 additions and 8 deletions
|
|
@ -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}}&version={{entry.id}}">Show version</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="history-changes?id={{entry.id}}">What's changed?</a>
|
||||
<a href="diff?page={{page}}&version={{entry.id}}">What's changed?</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue