Exemple #1
0
 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):
     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)
Exemple #4
0
 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)
Exemple #5
0
 def render(self):
     if INavigationLeaf.providedBy(self.model):
         return self.text
     return LinkAction.render(self)