aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-12 12:19:42 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-12 12:19:42 -0400
commit11e6d650eae4377485cb83f61a0ce9519ceb4c57 (patch)
tree4e7b09247faa70a9307c2e55937f70c9046ebe6c /IkiWiki
parente82b43bf950e1ff11683ae96abdd29879f92488a (diff)
downloadikiwiki-11e6d650eae4377485cb83f61a0ce9519ceb4c57.tar
ikiwiki-11e6d650eae4377485cb83f61a0ce9519ceb4c57.tar.gz
calendar: Fix CSS for year calendar to match the plugin documentation.
The names in the documentation were completly different, but also seemed better chosen than the names in the code.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/calendar.pm13
1 files changed, 4 insertions, 9 deletions
diff --git a/IkiWiki/Plugin/calendar.pm b/IkiWiki/Plugin/calendar.pm
index e3c5e2f2d..71c671d67 100644
--- a/IkiWiki/Plugin/calendar.pm
+++ b/IkiWiki/Plugin/calendar.pm
@@ -300,21 +300,16 @@ EOF
my $tag;
my $mtag=sprintf("%02d", $month);
if ($month == $params{month}) {
- if ($pagesources{"$archivebase/$params{year}/$mtag"}) {
- $tag = 'this_month_link';
- }
- else {
- $tag = 'this_month_nolink';
- }
+ $tag = 'year-calendar-this-month';
}
elsif ($pagesources{"$archivebase/$params{year}/$mtag"}) {
- $tag = 'month_link';
+ $tag = 'year-calendar-month-link';
}
elsif ($future_month && $month >= $future_month) {
- $tag = 'month_future';
+ $tag = 'year-calendar-month-future';
}
else {
- $tag = 'month_nolink';
+ $tag = 'year-calendar-month-nolink';
}
if ($pagesources{"$archivebase/$params{year}/$mtag"}) {