]> sipb.mit.edu Git - ikiwiki.git/commitdiff
calendar: Fix CSS for year calendar to match the plugin documentation.
authorJoey Hess <joey@gnu.kitenet.net>
Mon, 12 Oct 2009 16:19:42 +0000 (12:19 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Mon, 12 Oct 2009 16:19:42 +0000 (12:19 -0400)
The names in the documentation were completly different, but
also seemed better chosen than the names in the code.

IkiWiki/Plugin/calendar.pm
debian/changelog

index e3c5e2f2d4170a199bd25712b204a89eab224989..71c671d67e1d1919593c5fa4b6cb2bcb425c930e 100644 (file)
@@ -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"}) {
index e9f09a8c6958c3d6b204c8cdae4c7af1d4959d00..b9d1923cd4657f529359ecf93013562d49ef83ef 100644 (file)
@@ -34,6 +34,7 @@ ikiwiki (3.2009XXXX) UNRELEASED; urgency=low
     linked to an archive page from the wrong year, or were missing.
   * git: --getctime will now follow renames back to the original creation
     of a file.
+  * calendar: Fix CSS for year calendar to match the plugin documentation.
 
  -- Joey Hess <joeyh@debian.org>  Fri, 09 Oct 2009 19:53:50 -0400