ref: a176f9fe098a0ab5ee990c332652bff7964f801d
parent: de7b9cf2d729fda803c72fd0550617fa2da63a4f
author: uriel <[email protected]>
date: Fri Jan 16 22:43:36 EST 2009
Move some wiki code into dirdir app!
--- /dev/null
+++ b/apps/dirdir/app.rc
@@ -1,0 +1,14 @@
+fn dirdir_init {
+ if(! ~ $#wiki 0 && test -f $local_path.md && check_user $wiki_editors_group)
+ ll_add handlers_bar_left dirdir_controls
+}
+
+fn dirdir_controls {
+ # Display 'Edit', 'History', etc, links
+ echo '<div><form action="/_apps/dirdir/edit" method="POST">'
+ echo '<input type="hidden" name="edit_wiki_page" value="'^$req_path^'" />'
+ echo '<input type="submit" name="" value="Edit page" />'
+ echo '</form></div>'
+
+
+}