# HG changeset patch # User Paul Boddie # Date 1196542231 -3600 # Node ID 6206261843c802e172d3954cb7d4fa0971d1fa0a # Parent e2e73930b7527cdd116518923ad841f7562be9be Added an option to switch the username presentation between standard and special modes. Changed the standard username styles to resemble those employed in the special username mode. diff -r e2e73930b752 -r 6206261843c8 ep2008.py --- a/ep2008.py Sat Dec 01 19:54:36 2007 +0100 +++ b/ep2008.py Sat Dec 01 21:50:31 2007 +0100 @@ -57,5 +57,6 @@ banner_string = u'' contact_string = u'
Contact Information
' contribute_string = u'Contribute to this site!' + special_username = 0 # vim: tabstop=4 expandtab shiftwidth=4 diff -r e2e73930b752 -r 6206261843c8 themes/ep2008/css/screen.css --- a/themes/ep2008/css/screen.css Sat Dec 01 19:54:36 2007 +0100 +++ b/themes/ep2008/css/screen.css Sat Dec 01 21:50:31 2007 +0100 @@ -78,22 +78,17 @@ } #username { + background-color: #b21212; + color: white; display: inline; - margin: 5px 12px; - padding: 0; - text-align: right; - font-size: 0.82em; + margin: 0; + padding: 2px 0; + font-size: 0.88em; white-space: nowrap; } -*[dir="rtl"] #username { - text-align: left; - margin: 5px 0px; -} - #username li { display: inline; - padding: 0 0.5em 0 0; } #username form { @@ -105,14 +100,23 @@ padding: 0; margin: 0; border: none; - background: #E7E7E7; /* inherit doesnt work on IE */ - color: blue; - font-size: 0.82em; cursor: pointer; } #username input:hover { - color: red; +} + +#username a, #username a:visited, #username a:link { + text-decoration: none; + color: white; + padding: 2px 0.5em; +} + +#login { + text-decoration: none; + background-color: #073683; + color: white; + padding: 2px 0.5em; } #searchform { diff -r e2e73930b752 -r 6206261843c8 themes/ep2008/ep2008.py --- a/themes/ep2008/ep2008.py Sat Dec 01 19:54:36 2007 +0100 +++ b/themes/ep2008/ep2008.py Sat Dec 01 21:50:31 2007 +0100 @@ -85,6 +85,12 @@ @return: page footer html """ page = d['page'] + + if self.cfg.special_username: + username = self.specialUsername(d) + else: + username = self.username(d) + html = [ # End of page self.pageinfo(page), @@ -105,7 +111,7 @@ #self.interwiki(d), #self.title(d), #u'', - self.specialUsername(d), + username, self.editbar(d), self.trail(d), #u'',