calendar: Improved display of arrows.
parent
425f6a8de2
commit
142e025ae4
|
@ -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>
|
||||
|
|
|
@ -43,6 +43,7 @@ ikiwiki (3.20100415) UNRELEASED; urgency=low
|
|||
* sidebar: Add global_sidebars setting.
|
||||
* conditional: Fix bug that forced "all" mode off by default.
|
||||
* calendarmonth.tmpl: The month calendar is now put in a sidebar.
|
||||
* calendar: Improved display of arrows.
|
||||
|
||||
-- Joey Hess <joeyh@debian.org> Sun, 04 Apr 2010 12:17:11 -0400
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@ customization.
|
|||
|
||||
* `month-calendar` - The month calendar as a whole.
|
||||
* `month-calendar-head` - The head of the month calendar (ie,"March").
|
||||
* `month-calendar-arrow` - Arrow pointing to previous/next month.
|
||||
* `month-calendar-day-head` - A column head in the month calendar (ie, a
|
||||
day-of-week abbreviation).
|
||||
* `month-calendar-day-noday`, `month-calendar-day-link`,
|
||||
|
@ -27,6 +28,7 @@ customization.
|
|||
weekends.
|
||||
* `year-calendar` - The year calendar as a whole.
|
||||
* `year-calendar-head` - The head of the year calendar (ie, "2007").
|
||||
* `year-calendar-arrow` - Arrow pointing to previous/next year.
|
||||
* `year-calendar-subhead` - For example, "Months".
|
||||
* `year-calendar-month-link`, `year-calendar-month-nolink`,
|
||||
`year-calendar-month-future`, `year-calendar-this-month` - The month
|
||||
|
|
|
@ -431,3 +431,11 @@ pre.hl { color:#000000; background-color:#ffffff; }
|
|||
/* For the calendar plugin. */
|
||||
.month-calendar-day-this-day { background-color: #eee; }
|
||||
.year-calendar-this-month { background-color: #eee; }
|
||||
.month-calendar-arrow A:link,
|
||||
.year-calendar-arrow A:link,
|
||||
.month-calendar-arrow A:visited,
|
||||
.year-calendar-arrow A:visited {
|
||||
text-decoration: none;
|
||||
font-weight: normal;
|
||||
font-size: 150%;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue