X-Git-Url: http://git.plutz.net/?p=busy;a=blobdiff_plain;f=Wiki.page;h=07055b3c15f2a78d8f9cdd37b23a08414a0f8386;hp=5effa39776e13d0c6c3e8ef2564ecebc523b760f;hb=a521af21fd30e34d0ae9cfbf8296c89938312620;hpb=62c3d9c54dec22772956bea9f2ec482c891e511e diff --git a/Wiki.page b/Wiki.page index 5effa39..07055b3 100755 --- a/Wiki.page +++ b/Wiki.page @@ -21,24 +21,31 @@ 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
- +

$title

- +
+ WikiEND elif [ -n "$info" -a -r "Wiki/${info}${rev}" ]; then @@ -60,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

@@ -81,10 +89,10 @@ elif [ -n "$info" -a -r "Wiki/${info}${rev}" ]; then
-
+

$title

$(_wiki Wiki/"${info}${rev}") -
+
WikiEND @@ -92,19 +100,19 @@ WikiEND $LOGIN && cat <Comment / Ask WikiEND stat -c '' Wiki/${info}.comment.<0000000000-9999999999>_<000-999> && for each in $(ls -c Wiki/${info}.comment.<0000000000-9999999999>_<000-999>); do author=$(grep -m1 '^author=' "$each" |cut -d= -f2-) - echo "

$author wrote:

" - tail -n-1 $each - echo '
' + echo "

$author wrote:

" + tail -n+2 $each |_wiki + echo '
' done echo '' @@ -119,7 +127,7 @@ elif [ -z "$info" ]; then
WikiEND if [ -n "$search" ]; then - echo "

Search results for: $search

" + echo "

Wiki search results for: $search

" for each in $(grep -ile "$search" Wiki/<0000000000-9999999999>_<000-999>); do echo " WikiEND - $LOGIN && cat <