equal
deleted
inserted
replaced
48 self.render_entity_title(entity) |
48 self.render_entity_title(entity) |
49 # XXX uncomment this in 3.6 |
49 # XXX uncomment this in 3.6 |
50 #self.render_entity_toolbox(entity) |
50 #self.render_entity_toolbox(entity) |
51 # entity's attributes and relations, excluding meta data |
51 # entity's attributes and relations, excluding meta data |
52 # if the entity isn't meta itself |
52 # if the entity isn't meta itself |
53 boxes = self._prepare_side_boxes(entity) |
53 if self.is_primary(): |
|
54 boxes = self._prepare_side_boxes(entity) |
|
55 else: |
|
56 boxes = None |
54 if boxes or hasattr(self, 'render_side_related'): |
57 if boxes or hasattr(self, 'render_side_related'): |
55 self.w(u'<table width="100%"><tr><td style="width: 75%">') |
58 self.w(u'<table width="100%"><tr><td style="width: 75%">') |
56 self.render_entity_summary(entity) |
59 self.render_entity_summary(entity) |
57 self.w(u'<div class="mainInfo">') |
60 self.w(u'<div class="mainInfo">') |
58 self.content_navigation_components('navcontenttop') |
61 self.content_navigation_components('navcontenttop') |
86 |
89 |
87 def render_entity_title(self, entity): |
90 def render_entity_title(self, entity): |
88 """default implementation return dc_title""" |
91 """default implementation return dc_title""" |
89 title = xml_escape(entity.dc_title()) |
92 title = xml_escape(entity.dc_title()) |
90 if title: |
93 if title: |
91 self.w(u'<h1>%s</h1>' % title) |
94 if self.is_primary(): |
|
95 self.w(u'<h1>%s</h1>' % title) |
|
96 else: |
|
97 atitle = self.req._('follow this link for more information on this %s') % entity.dc_type() |
|
98 self.w(u'<h4><a href="%s" title="%s">%s</a></h4>' |
|
99 % (entity.absolute_url(), atitle, title)) |
92 |
100 |
93 def render_entity_toolbox(self, entity): |
101 def render_entity_toolbox(self, entity): |
94 self.content_navigation_components('ctxtoolbar') |
102 self.content_navigation_components('ctxtoolbar') |
95 |
103 |
96 def render_entity_metadata(self, entity): |
104 def render_entity_metadata(self, entity): |