diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-02-17 18:57:19 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-02-17 18:57:19 -0600 |
commit | a7c37d5489611bf79889dd689abb0ac686d640c9 (patch) | |
tree | 68d9b965c581dcc049c36b5e6a5d9b877ff0312b /root | |
parent | 251066735d9b3392ba7ea35da2fc0d6cd896e3a1 (diff) | |
download | narwhal-a7c37d5489611bf79889dd689abb0ac686d640c9.tar.gz narwhal-a7c37d5489611bf79889dd689abb0ac686d640c9.zip |
refactor this a bit
Diffstat (limited to 'root')
-rw-r--r-- | root/templates/edit.tt | 4 | ||||
-rw-r--r-- | root/templates/page.tt | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/root/templates/edit.tt b/root/templates/edit.tt index 5f91803..a2be77c 100644 --- a/root/templates/edit.tt +++ b/root/templates/edit.tt @@ -1,9 +1,9 @@ <html> <body> <h1>[% page %]</h1> -<p><a href="[% uri_for('controller', 'wiki', 'action', 'page', 'page_name', page) %]">View</a></p> +<p><a href="[% uri_for('action', 'page', 'page_name', page) %]">View</a></p> <p> -<form method="POST" action="[% uri_for('controller', 'wiki', 'action', 'edit', 'page_name', page) %]"> +<form method="POST" action="[% uri_for('action', 'edit', 'page_name', page) %]"> <textarea name="text" rows="10" cols="30">[% text %]</textarea> <input type="submit" value="Submit" /> </form> diff --git a/root/templates/page.tt b/root/templates/page.tt index 43b111f..d9e16dc 100644 --- a/root/templates/page.tt +++ b/root/templates/page.tt @@ -1,7 +1,7 @@ <html> <body> <h1>[% page %]</h1> -<p><a href="[% uri_for('controller', 'wiki', 'action', 'edit', 'page_name', page) %]">Edit</a></p> +<p><a href="[% uri_for('action', 'edit', 'page_name', page) %]">Edit</a></p> <p> [% text %] </p> |