diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2010-04-15 20:12:03 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2010-04-15 20:12:03 -0400 |
commit | 142e025ae471c91e68a23476f700df0b8ad6b31d (patch) | |
tree | c802104d6d0ce345f034a0df0a87712b593b915e /IkiWiki | |
parent | 425f6a8de2ed66b934c16c102456b15da4ff5a14 (diff) | |
download | ikiwiki-142e025ae471c91e68a23476f700df0b8ad6b31d.tar ikiwiki-142e025ae471c91e68a23476f700df0b8ad6b31d.tar.gz |
calendar: Improved display of arrows.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/calendar.pm | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/IkiWiki/Plugin/calendar.pm b/IkiWiki/Plugin/calendar.pm index 0f0e9518a..aeb5f3d29 100644 --- a/IkiWiki/Plugin/calendar.pm +++ b/IkiWiki/Plugin/calendar.pm @@ -164,11 +164,11 @@ sub format_month (@) { # Start producing the month calendar $calendar=<<EOF; <table class="month-calendar"> - <caption class="month-calendar-head"> - $purl - $url - $nurl - </caption> + <tr> + <th class="month-calendar-arrow">$purl</th> + <th class="month-calendar-head" colspan="5">$url</th> + <th class="month-calendar-arrow">$nurl</th> + </tr> <tr> EOF @@ -312,13 +312,14 @@ sub format_year (@) { add_depends($params{page}, "$archivebase/$nyear", deptype("presence")); # Start producing the year calendar + my $m=$params{months_per_row}-2; $calendar=<<EOF; <table class="year-calendar"> - <caption class="year-calendar-head"> - $purl - $url - $nurl - </caption> + <tr> + <th class="year-calendar-arrow">$purl</th> + <th class="year-calendar-head" colspan="$m">$url</th> + <th class="year-calendar-arrow">$nurl</th> + </tr> <tr> <th class="year-calendar-subhead" colspan="$params{months_per_row}">Months</th> </tr> |