diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-08-20 18:57:21 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-08-20 18:57:21 +0000 |
commit | a9b7f01ec816944d5517bf6a800bd0b4bb07937a (patch) | |
tree | e95278bb6cbc48542fe4857717aa8c06330563a6 /IkiWiki/Plugin | |
parent | 56b29914bd747901070c1dcede47e27e1cd46305 (diff) | |
download | ikiwiki-a9b7f01ec816944d5517bf6a800bd0b4bb07937a.tar ikiwiki-a9b7f01ec816944d5517bf6a800bd0b4bb07937a.tar.gz |
* Add color parameter to postsparkline. Closes: #438900
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/postsparkline.pm | 6 |
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 ($@) { |