1.1 --- a/themes/mercurialwiki/css/screen.css Sat Feb 05 21:57:40 2011 +0100
1.2 +++ b/themes/mercurialwiki/css/screen.css Sun Feb 06 00:02:27 2011 +0100
1.3 @@ -300,11 +300,11 @@
1.4 float: left;
1.5 }
1.6
1.7 -#credits, #version, #timings, #username {
1.8 +#credits, #version, #timings, #username, .footer-link {
1.9 float: right;
1.10 }
1.11
1.12 -#pagetrail, #credits, #version, #timings, #username {
1.13 +#pagetrail, #credits, #version, #timings, #username, .footer-link {
1.14
1.15 /* Styling similar to the main site. */
1.16
1.17 @@ -319,7 +319,7 @@
1.18 font-size: .6428em;
1.19 }
1.20
1.21 -#pagetrail, #username {
1.22 +#pagetrail, #username, .footer-link {
1.23
1.24 /* Styling similar to the main site. */
1.25
1.26 @@ -340,7 +340,11 @@
1.27 vertical-align: middle;
1.28 }
1.29
1.30 -#pagetrail a, #credits a, #username a {
1.31 +#pagetrail a, #credits a, #username a, .footer-link a {
1.32 + text-decoration: none;
1.33 +}
1.34 +
1.35 +.footer-link a:hover {
1.36 text-decoration: none;
1.37 }
1.38
2.1 --- a/themes/mercurialwiki/mercurialwiki.py Sat Feb 05 21:57:40 2011 +0100
2.2 +++ b/themes/mercurialwiki/mercurialwiki.py Sun Feb 06 00:02:27 2011 +0100
2.3 @@ -120,6 +120,7 @@
2.4 html.append(fmt.div(on=0))
2.5
2.6 html.append(self.trail(d))
2.7 + html.append(self.footerLink(d))
2.8 html.append(self.username(d))
2.9
2.10 html.append(fmt.div(on=0))
2.11 @@ -193,7 +194,6 @@
2.12 return u''.join(html)
2.13
2.14 def actionsMenu(self, page):
2.15 -
2.16 """ An overridden version of the actions menu
2.17
2.18 This method strips the adjacent white-space from the generated menu.
2.19 @@ -205,6 +205,26 @@
2.20
2.21 return ThemeBase.actionsMenu(self, page).strip()
2.22
2.23 + def footerLink(self, d):
2.24 + """ Make link to the page footer
2.25 +
2.26 + @param d: parameter dictionary
2.27 + @rtype: unicode
2.28 + @return: page footer link html
2.29 + """
2.30 +
2.31 + request = self.request
2.32 + fmt = request.formatter
2.33 + html = []
2.34 +
2.35 + html.append(fmt.div(on=1, attr={"class" : "footer-link"}))
2.36 + html.append(fmt.anchorlink(on=1, name="footer"))
2.37 + html.append("↓")
2.38 + html.append(fmt.anchorlink(on=0))
2.39 + html.append(fmt.div(on=0))
2.40 +
2.41 + return u''.join(html)
2.42 +
2.43 # Theme instantiation.
2.44
2.45 def execute(request):