1.1 --- a/themes/mercurialwiki/mercurialwiki.py Sat Feb 05 21:57:40 2011 +0100
1.2 +++ b/themes/mercurialwiki/mercurialwiki.py Sun Feb 06 00:02:27 2011 +0100
1.3 @@ -120,6 +120,7 @@
1.4 html.append(fmt.div(on=0))
1.5
1.6 html.append(self.trail(d))
1.7 + html.append(self.footerLink(d))
1.8 html.append(self.username(d))
1.9
1.10 html.append(fmt.div(on=0))
1.11 @@ -193,7 +194,6 @@
1.12 return u''.join(html)
1.13
1.14 def actionsMenu(self, page):
1.15 -
1.16 """ An overridden version of the actions menu
1.17
1.18 This method strips the adjacent white-space from the generated menu.
1.19 @@ -205,6 +205,26 @@
1.20
1.21 return ThemeBase.actionsMenu(self, page).strip()
1.22
1.23 + def footerLink(self, d):
1.24 + """ Make link to the page footer
1.25 +
1.26 + @param d: parameter dictionary
1.27 + @rtype: unicode
1.28 + @return: page footer link html
1.29 + """
1.30 +
1.31 + request = self.request
1.32 + fmt = request.formatter
1.33 + html = []
1.34 +
1.35 + html.append(fmt.div(on=1, attr={"class" : "footer-link"}))
1.36 + html.append(fmt.anchorlink(on=1, name="footer"))
1.37 + html.append("↓")
1.38 + html.append(fmt.anchorlink(on=0))
1.39 + html.append(fmt.div(on=0))
1.40 +
1.41 + return u''.join(html)
1.42 +
1.43 # Theme instantiation.
1.44
1.45 def execute(request):