[views] do not underline h1 titles for tabbedprimary views stable
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Wed, 08 Sep 2010 10:32:46 +0200
branchstable
changeset 6193 a58097ee4f15
parent 6192 80388edf4e88
child 6194 2a1f8cabbe6a
[views] do not underline h1 titles for tabbedprimary views
web/data/cubicweb.css
web/views/tabs.py
--- a/web/data/cubicweb.css	Wed Sep 08 10:27:53 2010 +0200
+++ b/web/data/cubicweb.css	Wed Sep 08 10:32:46 2010 +0200
@@ -43,7 +43,7 @@
   color: %(h1Color)s;
 }
 
-h1.plain {
+div.tabbedprimary + h1, h1.plain {
  border-bottom: none;
 }
 
--- a/web/views/tabs.py	Wed Sep 08 10:27:53 2010 +0200
+++ b/web/views/tabs.py	Wed Sep 08 10:32:46 2010 +0200
@@ -209,6 +209,7 @@
     def cell_call(self, row, col):
         entity = self.cw_rset.complete_entity(row, col)
         self.render_entity_toolbox(entity)
+        self.w(u'<div class="tabbedprimary"></div>')
         self.render_entity_title(entity)
         self.render_tabs(self.tabs, self.default_tab, entity)