shithub: werc

Download patch

ref: 6b307b7e1f44864d654c007ac1af75db7663cca0
parent: c2eb3b5c83cd5b2499a5fa6f3500b6ed94c9b27e
author: uriel <[email protected]>
date: Sun Dec 28 18:44:03 EST 2008

Update template to use new variable names.

--- a/lib/default_master.tpl
+++ b/lib/default_master.tpl
@@ -26,7 +26,7 @@
 %}
 </div>
 
-% if (! ~ $#wiki 0 && test -f $body.md  && check_user $wiki_editors_group) {
+% if (! ~ $#wiki 0 && test -f $local_path.md  && check_user $wiki_editors_group) {
 <div> 
     <form action="/_apps/dirdir/edit" method="POST">
         <input type="hidden" name="edit_wiki_page" value="%($req_path%)" />
@@ -47,7 +47,7 @@
 % if (! ~ $#allowComments 0) {
 
 %{
-cdir = $body.md_werc/comments
+cdir = $local_path.md_werc/comments
 if (test -d $cdir) { 
     echo '<hr /><h2>Comments</h2>'
     for(c in `{ls $cdir/}) {