[open-ils-commits] r61 - in servres/trunk/conifer: static templates

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Nov 27 09:50:43 EST 2008


Author: artunit
Date: 2008-11-27 09:50:42 -0500 (Thu, 27 Nov 2008)
New Revision: 61

Modified:
   servres/trunk/conifer/static/main.css
   servres/trunk/conifer/templates/master.xhtml
Log:


Modified: servres/trunk/conifer/static/main.css
===================================================================
--- servres/trunk/conifer/static/main.css	2008-11-27 02:35:24 UTC (rev 60)
+++ servres/trunk/conifer/static/main.css	2008-11-27 14:50:42 UTC (rev 61)
@@ -17,6 +17,15 @@
     background-color: #448;
 }
 
+#header div#search {
+    position: relative;
+    top: -5px;
+    float: right;
+    margin:0.2em 0 1em;
+    padding:0 0.2em 0 0.5em;
+    color: #ccc;
+}
+
 #brandheader { background-color: white; padding: 8; }
 
 #header a { color: #fff; font-weight: bold;  }
@@ -46,6 +55,7 @@
 #tabbar li { display: inline; }
 #tabbar li a { padding: 18 18 4 18; background-color: #ddf; color: black; text-decoration: none; }
 #tabbar li a:hover { background-color: #fc8; }
+
 /* 
 #tabbar li.active a { background-color: #fa6; font-weight: bold; }
 */
@@ -66,4 +76,4 @@
 
 .metalinks { padding-left: 12; color: gray; }
 .metalinks a { color: navy; }
-.metalinks { position: absolute; left: 300; }
\ No newline at end of file
+.metalinks { position: absolute; left: 300; }

Modified: servres/trunk/conifer/templates/master.xhtml
===================================================================
--- servres/trunk/conifer/templates/master.xhtml	2008-11-27 02:35:24 UTC (rev 60)
+++ servres/trunk/conifer/templates/master.xhtml	2008-11-27 14:50:42 UTC (rev 61)
@@ -23,15 +23,28 @@
 	</div>
 	<img src="/static/institution-logo.png" style="height: 50;"/>
       </div>
+        <!--
       <div id="header" py:if="user.is_authenticated()">
+        trying to keep the search box consistent for now
+        -->
+      <div id="header">
+        <div id="search">
+            <form method="get" action="search">
+            <input id="q" name="q" maxlength="100" size="25" type="text" 
+                value="search..." onblur="if(this.value=='') this.value='search...';" 
+                onfocus="if(this.value=='search...') this.value='';"/>
+            </form>
+        </div>
+      <span py:if="user.is_authenticated()">
 	<strong style="padding-right: 18;">Welcome, ${user.first_name or user.username}!</strong>
 	<a href="/accounts/logout">Log Out</a>
 	&bull; <a href="/user/prefs">Preferences</a>
 	&bull; <a href="/admin/">Admin UI</a>
-      </div>
-      <div id="header" py:if="not user.is_authenticated()">
+      </span>
+      <span py:if="not user.is_authenticated()">
 	<strong style="padding-right: 18;">Welcome!</strong>
-      </div>
+      </span>
+    </div>
       <xi:include py:if="user.is_authenticated()" href="tabbar.xhtml"/>
       <div id="mainpanel">
 	${select('*|text()')}



More information about the open-ils-commits mailing list