--- a/web/data/cubicweb.css Tue Mar 20 18:29:13 2012 +0100
+++ b/web/data/cubicweb.css Wed Mar 21 11:08:31 2012 +0100
@@ -239,13 +239,21 @@
table#header td#header-right {
padding-top: 1em;
- float: right;
+ white-space: nowrap;
}
table#header img#logo{
vertical-align: middle;
}
+table#header td#headtext {
+ white-space: nowrap;
+}
+
+table#header td#header-center{
+ width: 100%;
+}
+
span#appliName {
font-weight: bold;
color: %(defaultColor)s;
--- a/web/data/cubicweb.old.css Tue Mar 20 18:29:13 2012 +0100
+++ b/web/data/cubicweb.old.css Wed Mar 21 11:08:31 2012 +0100
@@ -253,10 +253,16 @@
table#header a {
color: #000;
}
+table#header td#headtext {
+ white-space: nowrap;
+}
table#header td#header-right {
padding-top: 1em;
- float: right;
+ white-space: nowrap;
+}
+table#header td#header-center{
+ width: 100%;
}
span#appliName {
--- a/web/views/basecomponents.py Tue Mar 20 18:29:13 2012 +0100
+++ b/web/views/basecomponents.py Wed Mar 21 11:08:31 2012 +0100
@@ -77,10 +77,10 @@
__abstract__ = True
cw_property_defs = component.override_ctx(
component.CtxComponent,
- vocabulary=['header-left', 'header-right'])
+ vocabulary=['header-center', 'header-left', 'header-right', ])
# don't want user to hide this component using an cwproperty
site_wide = True
- context = _('header-left')
+ context = _('header-center')
class ApplLogo(HeaderComponent):
@@ -88,6 +88,7 @@
__regid__ = 'logo'
__select__ = yes() # no need for a cnx
order = -1
+ context = _('header-left')
def render(self, w):
w(u'<a href="%s"><img id="logo" src="%s" alt="logo"/></a>'
--- a/web/views/basetemplates.py Tue Mar 20 18:29:13 2012 +0100
+++ b/web/views/basetemplates.py Wed Mar 21 11:08:31 2012 +0100
@@ -329,7 +329,9 @@
__regid__ = 'header'
main_cell_components = ('appliname', 'breadcrumbs')
headers = (('headtext', 'header-left'),
- ('header-right', 'header-right'))
+ ('header-center', 'header-center'),
+ ('header-right', 'header-right')
+ )
def call(self, view, **kwargs):
self.main_header(view)