# HG changeset patch # User Paul Boddie # Date 1274646342 -7200 # Node ID e54ffa72c236bf9ffb716c9f6f5e89a3b72dfc44 # Parent ab59aee585c87854263322a727c6d92823c03613 Added username/login/settings/logout controls. diff -r ab59aee585c8 -r e54ffa72c236 themes/mercurialwiki/css/screen.css --- a/themes/mercurialwiki/css/screen.css Sun May 23 22:05:23 2010 +0200 +++ b/themes/mercurialwiki/css/screen.css Sun May 23 22:25:42 2010 +0200 @@ -279,7 +279,7 @@ input.button { } -#credits, #version, #timings { +#credits, #version, #timings, #username { float: right; /* Styling similar to the main site. */ @@ -289,7 +289,7 @@ padding: 10px 25px; } -#credits li, #timings li { +#credits li, #timings li, #username li { display: inline; padding: 0 2px; margin: 0 4px; @@ -299,7 +299,7 @@ vertical-align: middle; } -#credits a { +#credits a, #username a { text-decoration: none; } diff -r ab59aee585c8 -r e54ffa72c236 themes/mercurialwiki/mercurialwiki.py --- a/themes/mercurialwiki/mercurialwiki.py Sun May 23 22:05:23 2010 +0200 +++ b/themes/mercurialwiki/mercurialwiki.py Sun May 23 22:25:42 2010 +0200 @@ -114,13 +114,15 @@ html.append(self.searchform(d).strip()) html.append(fmt.div(on=0)) - html.append(fmt.div(on=0)) - # A separator. html.append(fmt.div(on=1, attr={"class" : "pageline"})) html.append(fmt.div(on=0)) + html.append(self.username(d)) + + html.append(fmt.div(on=0)) + # Show any pertinent message. html.append(self.msg(d))