commit 0d6ec5a2b74675d0daff480d9a13ce1182b5e6cb parent 3e5a2da37250ec17a3b265eda3d23f5da19c7d63 Author: uriel@engel.se.cat-v.org <unknown> Date: Tue, 21 Oct 2008 16:37:43 +0200 Add optional wiki sidebar Diffstat:
M | lib/default_master.tpl | | | 21 | +++++++++++++++++---- |
1 file changed, 17 insertions(+), 4 deletions(-)
diff --git a/lib/default_master.tpl b/lib/default_master.tpl @@ -17,11 +17,24 @@ <div id="side-bar"> <div> -% if (! ~ $#sideBarNavTitle 0) { -% echo '<p class="sideBarTitle">'$"sideBarNavTitle':</p>' -% } -% gensidebar +%{ +if (! ~ $#sideBarNavTitle 0) + echo '<p class="sideBarTitle">'$"sideBarNavTitle':</p>' + +gensidebar + +%} +</div> + +% # TODO: probably should check if we have the right perms +% if (! ~ $#wiki 0 && test -f $body.md && get_user && ! ~ $#logged_user 0) { +<div> + <form action="/_apps/dirdir/edit" method="POST"> + <input type="hidden" name="edit_wiki_page" value="%($req_path%)" /> + <input type="submit" name="" value="Edit page" /> + </form> </div> +% } <div> </div>