summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-20 18:57:21 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-20 18:57:21 +0000
commita9b7f01ec816944d5517bf6a800bd0b4bb07937a (patch)
treee95278bb6cbc48542fe4857717aa8c06330563a6 /IkiWiki
parent56b29914bd747901070c1dcede47e27e1cd46305 (diff)
* Add color parameter to postsparkline. Closes: #438900
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/postsparkline.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/postsparkline.pm b/IkiWiki/Plugin/postsparkline.pm
index 6f7558bc4..ac7ad9d73 100644
--- a/IkiWiki/Plugin/postsparkline.pm
+++ b/IkiWiki/Plugin/postsparkline.pm
@@ -55,11 +55,15 @@ sub preprocess (@) { #{{{
if ($@) {
return "[[postsparkline error $@]]";
}
+
+ my $color=exists $params{color} ? "($params{color})" : "";
+
delete $params{pages};
delete $params{formula};
delete $params{ftime};
+ delete $params{color};
return IkiWiki::Plugin::sparkline::preprocess(%params,
- map { $_ => "" } reverse @data);
+ map { $_.$color => "" } reverse @data);
} # }}}
sub perfoo ($@) {