diff --git a/src/plugins/webreport/WebCal.py b/src/plugins/webreport/WebCal.py index 9e1ba79f2..c2e00fe1a 100644 --- a/src/plugins/webreport/WebCal.py +++ b/src/plugins/webreport/WebCal.py @@ -561,16 +561,11 @@ class WebCalReport(Report): # Figure out if we need
  • or just plain
  • cs = str(cal_year) == currentsection and 'class="CurrentSection"' or '' - li = Html('li',attr=cs , indent=True, inline=True) + ul += Html('li',attr=cs , indent=True, inline=True) + ( - # create hyperlink - ahref = Html('a', str(cal_year), href = url, inline=True) - - # add hyperlink to
  • cell - li += ahref - - # add cell to unordered list - ul += li + # create hyperlink + Html('a', str(cal_year), href = url, inline=True) + ) # increase columns cols += 1 @@ -618,8 +613,6 @@ class WebCalReport(Report): navs = [(u, n) for u, n, c in navs if c] for url_fname, nav_text in navs: - subdirs = ['..'] * nr_up - subdirs.append(str(year)) if type(url_fname) == int: url_fname = get_full_month_name(url_fname) @@ -638,6 +631,8 @@ class WebCalReport(Report): # whether to add subdirs or not??? if add_subdirs: + subdirs = ['..'] * nr_up + subdirs.append(str(year)) url = '/'.join(subdirs + [url_fname]) if not _has_webpage_extension(url): @@ -645,16 +640,11 @@ class WebCalReport(Report): # Figure out if we need
  • or just plain
  • cs = url_fname == currentsection and 'class="CurrentSection"' or '' - li = Html('li', attr = cs, indent=True, inline=True) + ul += Html('li', attr = cs, indent=True, inline=True) + ( - # create hyperlink - ahref = Html('a', nav_text, href = url) - - # add hyperlink to
  • cell - li += ahref - - # add
  • to