2008-09-24 23:02:16 -06:00
|
|
|
|
|
|
|
<div id="header">
|
|
|
|
<div class="superHeader">
|
|
|
|
% cat `{ get_lib_file top_bar.inc }
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="midHeader">
|
2009-01-09 20:57:41 -07:00
|
|
|
<h1 class="headerTitle"><a href="/">%($"siteTitle%)<span id="headerSubTitle">%( $"siteSubTitle%)</span></a></h1>
|
2008-09-24 23:02:16 -06:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="subHeader">
|
|
|
|
<br />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2009-01-02 18:01:42 -07:00
|
|
|
% if(! ~ $#sidebar 0) {
|
2008-09-24 23:02:16 -06:00
|
|
|
<div id="side-bar">
|
|
|
|
|
|
|
|
<div>
|
2008-10-21 08:37:43 -06:00
|
|
|
%{
|
2009-01-02 18:01:42 -07:00
|
|
|
if(! ~ $#sideBarNavTitle 0)
|
2008-10-21 08:37:43 -06:00
|
|
|
echo '<p class="sideBarTitle">'$"sideBarNavTitle':</p>'
|
|
|
|
|
|
|
|
gensidebar
|
|
|
|
|
|
|
|
%}
|
|
|
|
</div>
|
|
|
|
|
2009-01-02 18:01:42 -07:00
|
|
|
% if(! ~ $#wiki 0 && test -f $local_path.md && check_user $wiki_editors_group) {
|
2008-10-21 08:37:43 -06:00
|
|
|
<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>
|
2008-09-24 23:02:16 -06:00
|
|
|
</div>
|
2008-10-21 08:37:43 -06:00
|
|
|
% }
|
2008-09-24 23:02:16 -06:00
|
|
|
|
|
|
|
<div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
% }
|
|
|
|
|
|
|
|
<div id="main-copy">
|
|
|
|
% genbody
|
|
|
|
|
2009-01-02 18:01:42 -07:00
|
|
|
% if(! ~ $#allowComments 0) {
|
2008-09-26 06:23:19 -06:00
|
|
|
|
|
|
|
%{
|
2008-12-28 15:44:03 -07:00
|
|
|
cdir = $local_path.md_werc/comments
|
2009-01-02 18:01:42 -07:00
|
|
|
if(test -d $cdir) {
|
2008-09-26 06:23:19 -06:00
|
|
|
echo '<hr /><h2>Comments</h2>'
|
2008-10-22 01:20:06 -06:00
|
|
|
for(c in `{ls $cdir/}) {
|
|
|
|
%}
|
|
|
|
<div>
|
|
|
|
% echo By: `{cat $c/user}
|
|
|
|
<br />
|
|
|
|
% cat $c/body | escape_html | sed 's,$,<br />,'
|
|
|
|
<hr /></div>
|
|
|
|
%{
|
2008-09-26 06:23:19 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
%}
|
2008-10-22 01:20:06 -06:00
|
|
|
<hr /><hr />
|
2008-09-26 06:23:19 -06:00
|
|
|
<form action="" method="post">
|
2008-10-22 01:20:06 -06:00
|
|
|
% if(! check_user) {
|
|
|
|
User: <input type="text" name="comment_user_name" value="" /> Password:
|
|
|
|
<input type="password" name="comment_user_password" value="" />
|
|
|
|
<small>If you are not registered enter your desired user/password and your account will be created when your comment is approved.</small>
|
|
|
|
% }
|
2008-09-26 06:23:19 -06:00
|
|
|
<textarea name="comment_text" id="comment_text" cols="80" rows="16"></textarea>
|
2008-10-22 01:20:06 -06:00
|
|
|
<input type="submit" name="post_comment" value="Post a comment" />
|
2008-09-26 06:23:19 -06:00
|
|
|
</form>
|
|
|
|
% }
|
|
|
|
|
2008-09-24 23:02:16 -06:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="footer">
|
|
|
|
% cat `{ get_lib_file footer.inc }
|
|
|
|
</div>
|