Add optional wiki sidebar
This commit is contained in:
parent
1e42eabd6d
commit
e37305f63b
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user