changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > werc / changeset: Move some wiki code into dirdir app!

changeset 329: 9fcf0fadc14b
parent 328: 6cc3ea4c97b3
child 330: 0db6b14983a5
author: uriel@engel.se.cat-v.org
date: Sat, 17 Jan 2009 03:43:36 +0100
files: apps/dirdir/app.rc
description: Move some wiki code into dirdir app!
     1.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2+++ b/apps/dirdir/app.rc	Sat Jan 17 03:43:36 2009 +0100
     1.3@@ -0,0 +1,14 @@
     1.4+fn dirdir_init {
     1.5+    if(! ~ $#wiki 0 && test -f $local_path.md && check_user $wiki_editors_group) 
     1.6+        ll_add handlers_bar_left  dirdir_controls
     1.7+}
     1.8+
     1.9+fn dirdir_controls {
    1.10+    # Display 'Edit', 'History', etc, links
    1.11+    echo '<div><form action="/_apps/dirdir/edit" method="POST">'
    1.12+    echo '<input type="hidden" name="edit_wiki_page" value="'^$req_path^'" />'
    1.13+    echo '<input type="submit" name="" value="Edit page" />'
    1.14+    echo '</form></div>'
    1.15+
    1.16+
    1.17+}