Add optional wiki sidebar

This commit is contained in:
uriel 2008-10-21 16:37:43 +02:00
parent 1e42eabd6d
commit e37305f63b

View File

@ -17,12 +17,25 @@
<div id="side-bar">
<div>
% if (! ~ $#sideBarNavTitle 0) {
% echo '<p class="sideBarTitle">'$"sideBarNavTitle':</p>'
%{
if (! ~ $#sideBarNavTitle 0)
echo '<p class="sideBarTitle">'$"sideBarNavTitle':</p>'
gensidebar
%}
% 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>