diff --git a/webtools/addons/public/htdocs/css/cavendish/template.css b/webtools/addons/public/htdocs/css/cavendish/template.css index 95cccdaeb03..a64e23ee269 100755 --- a/webtools/addons/public/htdocs/css/cavendish/template.css +++ b/webtools/addons/public/htdocs/css/cavendish/template.css @@ -67,6 +67,14 @@ body { font-size: 85%; } +#header div#auth { + display:inline; + position:absolute; + top:11px; + right:0px; + margin-right: 200px; +} + #key-menu { background: #B2C1C8 url("../../images/header-bottom.gif") 0 100% no-repeat; padding: 0 0 10px 0; diff --git a/webtools/addons/public/htdocs/js/auth.js b/webtools/addons/public/htdocs/js/auth.js index c7f1a6f5026..0b1eafbf007 100644 --- a/webtools/addons/public/htdocs/js/auth.js +++ b/webtools/addons/public/htdocs/js/auth.js @@ -9,13 +9,8 @@ function addUsernameToHeader() if (username && username.length > 0) { - var authdiv = document.createElement('div'); + document.writeln('
Logged in as: ' + htmlEntities(username) + '
'); - authdiv.setAttribute('id','auth'); - - authdiv.innerHTML = 'Logged in as: ' + htmlEntities(username); - - document.getElementById('header').appendChild(authdiv); } } diff --git a/webtools/addons/public/tpl/inc/wrappers/default-header.tpl b/webtools/addons/public/tpl/inc/wrappers/default-header.tpl index 0bd753cff91..355620d2f59 100644 --- a/webtools/addons/public/tpl/inc/wrappers/default-header.tpl +++ b/webtools/addons/public/tpl/inc/wrappers/default-header.tpl @@ -40,6 +40,12 @@

Firefox Add-ons Beta

{/if} + +