aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/pagestats.pm
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-07-29 20:14:07 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-07-29 20:14:07 +0000
commit299bb8bef3811b16d29a0e8ebb2c292c8dd11020 (patch)
tree5b72df423c2da442e86565119a4dad1b9c9e8e01 /IkiWiki/Plugin/pagestats.pm
parent498dba8b7049455996c22d791fa146333c04e201 (diff)
downloadikiwiki-299bb8bef3811b16d29a0e8ebb2c292c8dd11020.tar
ikiwiki-299bb8bef3811b16d29a0e8ebb2c292c8dd11020.tar.gz
more links
Diffstat (limited to 'IkiWiki/Plugin/pagestats.pm')
-rw-r--r--IkiWiki/Plugin/pagestats.pm10
1 files changed, 8 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/pagestats.pm b/IkiWiki/Plugin/pagestats.pm
index 86ebbe1d5..1d4d5ecdf 100644
--- a/IkiWiki/Plugin/pagestats.pm
+++ b/IkiWiki/Plugin/pagestats.pm
@@ -42,8 +42,14 @@ sub preprocess (@) { #{{{
}
if ($style eq 'table') {
- return "<table class='pageStats'>\n".join("\n", map { "<tr><td>$_</td><td>".$counts{$_}."</td></tr>" }
- sort { $counts{$b} <=> $counts{$a} } keys %counts)."\n</table>\n" ;
+ return "<table class='pageStats'>\n".
+ join("\n", map {
+ "<tr><td>".
+ IkiWiki::htmllink($params{page}, $params{destpage}, $_, 1).
+ "</td><td>".$counts{$_}."</td></tr>"
+ }
+ sort { $counts{$b} <=> $counts{$a} } keys %counts).
+ "\n</table>\n" ;
} else {
# In case of misspelling, default to a page cloud