From 3d63f4a4ea6d145823e52208068eaef20eebb2a5 Mon Sep 17 00:00:00 2001
From: Fabien Morin <fabien@nexedi.com>
Date: Thu, 9 Apr 2009 15:29:20 +0000
Subject: [PATCH] improve top bar : - display user login in white - remove the
 link from the user picure - change a bit search box style

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26376 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/tiolive_base/erp5.css.xml    | 20 +++++++++----------
 .../tiolive_base/navigation_box_render.xml    |  4 +++-
 bt5/tiolive_base/bt/revision                  |  2 +-
 3 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/bt5/tiolive_base/SkinTemplateItem/portal_skins/tiolive_base/erp5.css.xml b/bt5/tiolive_base/SkinTemplateItem/portal_skins/tiolive_base/erp5.css.xml
index c817521516..42dc4c3d0a 100644
--- a/bt5/tiolive_base/SkinTemplateItem/portal_skins/tiolive_base/erp5.css.xml
+++ b/bt5/tiolive_base/SkinTemplateItem/portal_skins/tiolive_base/erp5.css.xml
@@ -439,6 +439,8 @@ body {\n
 }\n
 \n
 #tiologin {\n
+  font-size:9pt;\n
+  color:#FFFFFF;\n
   float:left;\n
   height:100%;\n
   line-height:23px;\n
@@ -448,13 +450,16 @@ body {\n
   width:10%;\n
 }\n
 \n
+#tiologin img#user-img{\n
+  vertical-align: middle;\n
+  padding: 3px;\n
+}\n
+\n
 #link-login:link, #link-login:active, #link-login:visited {\n
-background:transparent url(<dtml-var expr="portal_url()">/tiolive_image/icon-login.png) no-repeat scroll 100% 0pt;\n
   color:#FFFFFF;\n
   float:left;\n
   height:100%;\n
   line-height:23px;\n
-  padding-right:20px;\n
   font-size:9pt;\n
   font-weight:normal;\n
   text-transform:lowercase;\n
@@ -504,7 +509,8 @@ background:transparent url(<dtml-var expr="portal_url()">/tiolive_image/icon-log
   margin: 0;\n
   padding: 0;\n
   top: 0;\n
-\twidth:135px;\t\n
+  margin-left: 3px;\n
+\twidth:132px;\t\n
 \theight:19px;\n
 \t\n
 }\n
@@ -521,14 +527,6 @@ background:transparent url(<dtml-var expr="portal_url()">/tiolive_image/icon-log
   padding: 5px;\n
 \n
 }\n
-\n
-#top-bar #tiologin{\n
-\n
-\tfont-family: Trebuchet, Verdana, Helvetica, Sans;\n
-\tcolor:#000;\n
-\tfont-size:11pt;\n
-\n
-}\n
 
 
 ]]></string> </value>
diff --git a/bt5/tiolive_base/SkinTemplateItem/portal_skins/tiolive_base/navigation_box_render.xml b/bt5/tiolive_base/SkinTemplateItem/portal_skins/tiolive_base/navigation_box_render.xml
index a26362b123..ce672517e0 100644
--- a/bt5/tiolive_base/SkinTemplateItem/portal_skins/tiolive_base/navigation_box_render.xml
+++ b/bt5/tiolive_base/SkinTemplateItem/portal_skins/tiolive_base/navigation_box_render.xml
@@ -120,7 +120,9 @@
    tal:define="user_name python:here.portal_membership.getAuthenticatedMember().getUserName()"\n
    tal:condition="not:here/portal_membership/isAnonymousUser"><a href="#" id="link-login"  \n
      tal:attributes="href string:${context_url}/logout"\n
-   i18n:translate="" i18n:domain="ui">Logout</a><tal:block tal:replace="user_name">jp</tal:block></p>        \n
+     i18n:translate="" i18n:domain="ui">Logout</a>\n
+   <img tal:attributes="src string:${context_url}/tiolive_image/icon-login.png" id=\'user-img\' alt=\'user\' />\n
+   <tal:block tal:replace="user_name">jp</tal:block></p>        \n
 <fieldset id="fieldset-tiosearch">\n
     <input type="hidden" name="all_languages" value="1" />\n
     <input accesskey="4" type="text" size="40" name="field_your_search_text" class="input-text" \n
diff --git a/bt5/tiolive_base/bt/revision b/bt5/tiolive_base/bt/revision
index a5c750feac..368f89ceef 100644
--- a/bt5/tiolive_base/bt/revision
+++ b/bt5/tiolive_base/bt/revision
@@ -1 +1 @@
-27
\ No newline at end of file
+28
\ No newline at end of file
-- 
2.30.9