[uiprops, css] make header background actually modifiable through uiprops stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 24 Mar 2011 13:22:10 +0100
branchstable
changeset 7102 0b7966f7bbcd
parent 7101 de388d0b727e
child 7103 9acffa1ecb2f
[uiprops, css] make header background actually modifiable through uiprops
web/data/cubicweb.css
web/data/cubicweb.old.css
web/data/uiprops.py
--- a/web/data/cubicweb.css	Thu Mar 24 13:20:33 2011 +0100
+++ b/web/data/cubicweb.css	Thu Mar 24 13:22:10 2011 +0100
@@ -1,6 +1,6 @@
 /*
  *  :organization: Logilab
- *  :copyright: 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+ *  :copyright: 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
  *  :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
  */
 
@@ -220,7 +220,7 @@
 /* header */
 
 table#header {
-  background: %(headerBgColor)s url("banner.png") repeat-x top left;
+  background: %(headerBg)s;
   width: 100%;
 }
 
--- a/web/data/cubicweb.old.css	Thu Mar 24 13:20:33 2011 +0100
+++ b/web/data/cubicweb.old.css	Thu Mar 24 13:22:10 2011 +0100
@@ -1,6 +1,6 @@
 /*
  *  :organization: Logilab
- *  :copyright: 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+ *  :copyright: 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
  *  :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
  */
 
@@ -227,7 +227,7 @@
 /* header */
 
 table#header {
-  background: #ff7700 url("banner.png") left top repeat-x;
+  background: %(headerBg)s;
   width: 100%;
 }
 
--- a/web/data/uiprops.py	Thu Mar 24 13:20:33 2011 +0100
+++ b/web/data/uiprops.py	Thu Mar 24 13:22:10 2011 +0100
@@ -75,6 +75,7 @@
 
 # header
 headerBgColor = '#ff7700'
+headerBg = lazystr('%(headerBgColor)s url("banner.png") repeat-x top left')
 
 # h
 h1FontSize = '1.5em' # 18px