5209: Narrated Web Site - Mainz - Year At A Glance - Rendering Error
svn: r18129
This commit is contained in:
parent
a6a49cf526
commit
c0f3cf1084
@ -823,8 +823,10 @@ class WebCalReport(Report):
|
|||||||
body += self.month_navigation(nr_up, year, currentsection, True)
|
body += self.month_navigation(nr_up, year, currentsection, True)
|
||||||
|
|
||||||
# build the calendar
|
# build the calendar
|
||||||
|
content = Html("div", class_="content")
|
||||||
|
body += content
|
||||||
monthly_calendar = self.calendar_build("wc", year, month)
|
monthly_calendar = self.calendar_build("wc", year, month)
|
||||||
body += monthly_calendar
|
content += monthly_calendar
|
||||||
|
|
||||||
# create note section for webcalendar()
|
# create note section for webcalendar()
|
||||||
# One has to be minused because the array starts at zero, but January =1
|
# One has to be minused because the array starts at zero, but January =1
|
||||||
@ -888,17 +890,16 @@ class WebCalReport(Report):
|
|||||||
'that date, if there are any.\n'))
|
'that date, if there are any.\n'))
|
||||||
|
|
||||||
# page description
|
# page description
|
||||||
body += Html("div", class_ = "content") + (
|
content = Html("div", class_ = "content") + (
|
||||||
|
|
||||||
# message line
|
|
||||||
Html("p", msg, id='description')
|
Html("p", msg, id='description')
|
||||||
)
|
)
|
||||||
|
body += content
|
||||||
|
|
||||||
for month in range(1, 13):
|
for month in range(1, 13):
|
||||||
|
|
||||||
# build the calendar
|
# build the calendar
|
||||||
monthly_calendar = self.calendar_build("yg", year, month)
|
monthly_calendar = self.calendar_build("yg", year, month)
|
||||||
body += monthly_calendar
|
content += monthly_calendar
|
||||||
|
|
||||||
# increase progress bar
|
# increase progress bar
|
||||||
self.progress.step()
|
self.progress.step()
|
||||||
@ -949,11 +950,13 @@ class WebCalReport(Report):
|
|||||||
body += self.month_navigation(nr_up, year, currentsection, True)
|
body += self.month_navigation(nr_up, year, currentsection, True)
|
||||||
|
|
||||||
# set date display as in user prevferences
|
# set date display as in user prevferences
|
||||||
body += Html("h3", _dd.display(event_date), inline = True)
|
content = Html("div", class_="content")
|
||||||
|
body += content
|
||||||
|
content += Html("h3", _dd.display(event_date), inline = True)
|
||||||
|
|
||||||
# list the events
|
# list the events
|
||||||
ordered = Html("ol")
|
ordered = Html("ol")
|
||||||
body += ordered
|
content += ordered
|
||||||
for nyears, date, text, event in day_list:
|
for nyears, date, text, event in day_list:
|
||||||
ordered += Html("li", text, inline = False if event == 'Anniversary' else True)
|
ordered += Html("li", text, inline = False if event == 'Anniversary' else True)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user