From 1aac0b5a60b8445422f44325870cbf6c28c57196 Mon Sep 17 00:00:00 2001 From: joey Date: Mon, 28 Aug 2006 19:46:00 +0000 Subject: don't add actions if all empty --- IkiWiki/Plugin/inline.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 6518be794..724cdf315 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -108,11 +108,12 @@ sub preprocess_inline (@) { #{{{ if ($actions) { my $file = $pagesources{$page}; my $type = pagetype($file); - $template->param(have_actions => 1); if ($config{discussion}) { + $template->param(have_actions => 1); $template->param(discussionlink => htmllink($page, $page, "Discussion", 1, 1)); } if (length $config{cgiurl} && defined $type) { + $template->param(have_actions => 1); $template->param(editurl => cgiurl(do => "edit", page => $page)); } } -- cgit v1.2.3