From adb6f5735ae29bd296c6f5bd7e0c84886f25d561 Mon Sep 17 00:00:00 2001 From: "bugzilla%micropipes.com" Date: Thu, 9 Mar 2006 05:50:43 +0000 Subject: [PATCH] just minor tweaks to position the "Logged in as" string in the new place. git-svn-id: svn://10.0.0.236/trunk@192049 18797224-902f-48f8-a5cc-f745e15eee43 --- .../addons/public/htdocs/css/cavendish/template.css | 8 ++++++++ mozilla/webtools/addons/public/htdocs/js/auth.js | 7 +------ .../public/tpl/inc/wrappers/default-header.tpl | 13 ++++++------- .../addons/public/tpl/inc/wrappers/nonav-header.tpl | 13 ++++++------- 4 files changed, 21 insertions(+), 20 deletions(-) diff --git a/mozilla/webtools/addons/public/htdocs/css/cavendish/template.css b/mozilla/webtools/addons/public/htdocs/css/cavendish/template.css index 95cccdaeb03..a64e23ee269 100755 --- a/mozilla/webtools/addons/public/htdocs/css/cavendish/template.css +++ b/mozilla/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/mozilla/webtools/addons/public/htdocs/js/auth.js b/mozilla/webtools/addons/public/htdocs/js/auth.js index c7f1a6f5026..0b1eafbf007 100644 --- a/mozilla/webtools/addons/public/htdocs/js/auth.js +++ b/mozilla/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/mozilla/webtools/addons/public/tpl/inc/wrappers/default-header.tpl b/mozilla/webtools/addons/public/tpl/inc/wrappers/default-header.tpl index 0bd753cff91..355620d2f59 100644 --- a/mozilla/webtools/addons/public/tpl/inc/wrappers/default-header.tpl +++ b/mozilla/webtools/addons/public/tpl/inc/wrappers/default-header.tpl @@ -40,6 +40,12 @@

Firefox Add-ons Beta

{/if} + +