From 0096f20a6044dec3d84fb9b196e90dee1ce05838 Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 10 Aug 2011 14:54:35 +0000 Subject: [PATCH] implemented version restoring svn path=/trunk/; revision=8 --- Wiki.page | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Wiki.page b/Wiki.page index 4909663..6aaf32e 100755 --- a/Wiki.page +++ b/Wiki.page @@ -21,7 +21,7 @@ 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 < @@ -34,7 +34,7 @@ if [ -n "$edit" -a -r "Wiki/$edit" ]; then

$title

- +
@@ -67,8 +67,9 @@ 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" fi @@ -126,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 "