diff options
Diffstat (limited to 'root')
-rw-r--r-- | root/templates/history.tt | 16 | ||||
-rw-r--r-- | root/templates/page.tt | 5 |
2 files changed, 21 insertions, 0 deletions
diff --git a/root/templates/history.tt b/root/templates/history.tt new file mode 100644 index 0000000..a50839b --- /dev/null +++ b/root/templates/history.tt @@ -0,0 +1,16 @@ +<html> +<body> +<h1>[% page %]</h1> +<p><a href="[% uri_for('action', 'page', 'page_name', page) %]">View</a></p> +<ul> +[% SET cur = head %] +[% WHILE cur %] +<li><a href="[% uri_for('action', 'old_page', 'page_name', page, 'rev', cur.digest) %]">[% cur.author.id %] on [% cur.modification_date %]</a></li> +[% SET cur = cur.previous_revision %] +[% END %] +</ul> +<p style="font-size: small"> +Last modified by [% author.id %] on [% modified %] +</p> +</body> +</html> diff --git a/root/templates/page.tt b/root/templates/page.tt index 6e9ec31..754d4b7 100644 --- a/root/templates/page.tt +++ b/root/templates/page.tt @@ -1,7 +1,12 @@ <html> <body> <h1>[% page %]</h1> +[% IF historical %] +<p>This is a historical view of this page</p> +[% ELSE %] <p><a href="[% uri_for('action', 'edit', 'page_name', page) %]">Edit</a></p> +[% END %] +<p><a href="[% uri_for('action', 'history', 'page_name', page) %]">History</a></p> <p> [% text %] </p> |