def render(self): if INavigationLeaf.providedBy(self.model): return u'{} {}'.format( tag('span', class_=self.icon), tag('span', self.text) ) return LinkAction.render(self)
def render(self): rendered = LinkAction.render(self) attrs = { 'class_': 'reftitle', 'style': 'display:none;', } title = self.model.metadata.get('title', self.model.name) return rendered + tag('span', title, **attrs)
def render(self): if INavigationLeaf.providedBy(self.model): return self.text return LinkAction.render(self)