diff --git a/src/plugins/webreport/WebCal.py b/src/plugins/webreport/WebCal.py index fa0b48f0b..5a1ac984f 100644 --- a/src/plugins/webreport/WebCal.py +++ b/src/plugins/webreport/WebCal.py @@ -362,8 +362,6 @@ class WebCalReport(Report): """ Will create and display the navigation menu bar - use_home will produce a link to wherever you specify as a home link - of = calendar filename being created nr_up = number of directories up to reach root directory year = year being created @@ -374,48 +372,40 @@ class WebCalReport(Report): navs = [] - # check to see if we are using a home link??? - if use_home: - navs.append((self.home_link, _('Home'), True)) + # An optional link to a home page + navs.append((self.home_link, _('Home'), use_home)) for month in range(1, 13): navs.append((month, month, True)) # Add a link for year_glance() if requested - navs.append(('fullyear', _('Year Glance'), self.fullyear)) + navs.append(('fullyear', _('Year Glance'), self.fullyear)) of.write('\n\n') @@ -864,7 +854,7 @@ class WebCalReport(Report): of.write('\n') - self.calendar_common(of, nr_up, year, 'fullyear', title) + self.calendar_common(of, nr_up, year, 'fullyear', title, use_home=True) # page description of.write('
\n') @@ -1571,6 +1561,7 @@ def get_next_day(year, month, day_col): next_month_day = firstweek_nextmonth[day_col] return next_month_day +# TODO. Eliminate this function, or make it do something useful. def _has_webpage_extension(url, ext): """ determine if a filename has an extension or not...