shithub: werc

ref: 63d9ac4570c821a09bf60e3e9534df9b9dd9a0b3
dir: /apps/dirdir/app.rc/

View raw version
fn dirdir_init {
    if(! ~ $#enable_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 '<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>'


}