# HG changeset patch # User Sylvain Thénault # Date 1300969330 -3600 # Node ID 0b7966f7bbcd4d5d5b310008469ead641672691f # Parent de388d0b727ecf338ca764c2485311abfef251d8 [uiprops, css] make header background actually modifiable through uiprops diff -r de388d0b727e -r 0b7966f7bbcd web/data/cubicweb.css --- 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%; } diff -r de388d0b727e -r 0b7966f7bbcd web/data/cubicweb.old.css --- 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%; } diff -r de388d0b727e -r 0b7966f7bbcd web/data/uiprops.py --- 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