From c233fd992b318818cdbb88a60fc030076dbd7edc Mon Sep 17 00:00:00 2001 From: joey Date: Sat, 11 Mar 2006 01:07:29 +0000 Subject: [PATCH] cgiurl --- ikiwiki | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ikiwiki b/ikiwiki index fcf081ccb..230de585d 100755 --- a/ikiwiki +++ b/ikiwiki @@ -23,6 +23,7 @@ my $wikiname="wiki"; my $default_pagetype=".mdwn"; my $cgi=0; my $url=""; +my $cgiurl=""; my $svn=1; sub usage { @@ -262,8 +263,15 @@ sub finalize ($$) { $path=~s/\.\.\/$/index.html/; $pagelink="$wikiname/ $pagelink"; + my @actions; + if (length $cgiurl) { + push @actions, "Edit"; + push @actions, "RecentChanges"; + } + $content="\n$title\n\n". "

$pagelink

\n". + "@actions\n
\n". $content. "\n\n"; @@ -655,6 +663,7 @@ if (grep /^-/, @ARGV) { "svn!" => \$svn, "cgi" => \$cgi, "url=s" => \$url, + "cgiurl=s" => \$cgiurl, ) || usage(); } usage() unless @ARGV == 2; -- 2.26.2