X-Git-Url: http://git.plutz.net/?p=busy;a=blobdiff_plain;f=Wiki.page;h=07055b3c15f2a78d8f9cdd37b23a08414a0f8386;hp=490966367705b8b8d744062aa4e6aa007612c0a3;hb=a521af21fd30e34d0ae9cfbf8296c89938312620;hpb=44407376a39cd71f292875c4d09214277110d724 diff --git a/Wiki.page b/Wiki.page index 4909663..07055b3 100755 --- a/Wiki.page +++ b/Wiki.page @@ -21,10 +21,10 @@ else lock="$(cut -d: -f1 "$lock")" fi -if [ -n "$edit" -a -r "Wiki/$edit" ]; then +if [ -n "$edit" -a -r "Wiki/${edit}${rev}" ]; then title="$(egrep -x 'title=.+' "Wiki/$edit.meta" |cut -d= -f2- || echo '(Untitled)')" cat < +
Editing $title
@@ -34,7 +34,7 @@ if [ -n "$edit" -a -r "Wiki/$edit" ]; then

$title

- +
@@ -67,10 +67,11 @@ elif [ -n "$info" -a -r "Wiki/${info}${rev}" ]; then rno=$(($rno+1)) done) Latest

- $($LOGIN && [ -z "$rev" ] && if [ -z "$lock" ]; then - echo "edit this page" + $($LOGIN && if [ -z "$lock" ]; then + [ -z "$rev" ] && echo "edit this page" + [ -n "$rev" ] && echo "Click edit to derive a new page revision from this one." else - echo "This page is currently being edited by $lockedit anyway" + echo "This page is currently being edited by $lockedit anyway" fi $LOGIN && echo '
')

Table of Content

@@ -99,7 +100,7 @@ WikiEND $LOGIN && cat <Comment / Ask