fix so that entity's summary appears in main content cell to avoid layout pb stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 31 Aug 2009 17:38:38 +0200
branchstable
changeset 3064 3fbcdf220ce9
parent 3063 f77dd366544f
child 3065 694c03f7d72f
child 3067 921fdbf8b303
fix so that entity's summary appears in main content cell to avoid layout pb
web/views/primary.py
--- a/web/views/primary.py	Mon Aug 31 16:49:00 2009 +0200
+++ b/web/views/primary.py	Mon Aug 31 17:38:38 2009 +0200
@@ -51,6 +51,7 @@
         boxes = self._prepare_side_boxes(entity)
         if boxes or hasattr(self, 'render_side_related'):
             self.w(u'<table width="100%"><tr><td style="width: 75%">')
+        self.render_entity_summary(entity)
         self.w(u'<div class="mainInfo">')
         self.content_navigation_components('navcontenttop')
         self.render_entity_attributes(entity)
@@ -90,6 +91,8 @@
 
     def render_entity_metadata(self, entity):
         entity.view('metadata', w=self.w)
+
+    def render_entity_summary(self, entity):
         summary = self.summary(entity) # deprecate summary?
         if summary:
             self.w(u'<div class="summary">%s</div>' % summary)