equal
deleted
inserted
replaced
12 from rql import parse |
12 from rql import parse |
13 |
13 |
14 from cubicweb.selectors import yes, two_etypes_rset, match_form_params |
14 from cubicweb.selectors import yes, two_etypes_rset, match_form_params |
15 from cubicweb.schema import display_name |
15 from cubicweb.schema import display_name |
16 from cubicweb.common.uilib import html_escape, toggle_action |
16 from cubicweb.common.uilib import html_escape, toggle_action |
17 from cubicweb.web import uicfg, component |
17 from cubicweb.web import component |
18 from cubicweb.web.htmlwidgets import (MenuWidget, PopupBoxMenu, BoxSeparator, |
18 from cubicweb.web.htmlwidgets import (MenuWidget, PopupBoxMenu, BoxSeparator, |
19 BoxLink) |
19 BoxLink) |
20 |
20 |
21 _ = unicode |
21 _ = unicode |
22 |
22 |
143 |
143 |
144 class ApplicationName(component.Component): |
144 class ApplicationName(component.Component): |
145 """display the application name""" |
145 """display the application name""" |
146 id = 'appliname' |
146 id = 'appliname' |
147 property_defs = VISIBLE_PROP_DEF |
147 property_defs = VISIBLE_PROP_DEF |
148 |
148 # don't want user to hide this component using an cwproperty |
149 def call(self): |
149 site_wide = True |
150 self.w(u'<span id="appliName"><a href="%s">%s</a></span>' % (self.req.base_url(), |
150 |
151 self.req.property_value('ui.site-title'))) |
151 def call(self): |
152 |
152 self.w(u'<span id="appliName"><a href="%s">%s</a></span>' % ( |
153 |
153 self.req.base_url(), self.req.property_value('ui.site-title'))) |
154 uicfg.rdisplay.tag_relation('!*', 'see_also', '*', {}) |
154 |
155 uicfg.rdisplay.tag_relation('*', 'see_also', '!*', {}) |
|
156 |
155 |
157 class SeeAlsoVComponent(component.RelatedObjectsVComponent): |
156 class SeeAlsoVComponent(component.RelatedObjectsVComponent): |
158 """display any entity's see also""" |
157 """display any entity's see also""" |
159 id = 'seealso' |
158 id = 'seealso' |
160 context = 'navcontentbottom' |
159 context = 'navcontentbottom' |