Esempio n. 1
0
 def content(self, items):
     return HTML.ul(*[
         HTML.li(
             HTML.a(eid, href=self.dt.req.route_url('ecoregion', id=eid)))
         for eid in items
     ],
                    class_='unstyled')
Esempio n. 2
0
 def format(self, item):
     return HTML.ul(
         *[HTML.li(HTML.span(t, class_="label label-info"))
                   for t in split_ids(item.name)],
         class_='unstyled')
Esempio n. 3
0
 def format(self, item):
     return HTML.ul(
         *[HTML.li(o.name + ',') for o in getattr(item, self.__rel_name__)],
         class_="unstyled")
Esempio n. 4
0
 def content(self, items):
     return HTML.ul(*[
         HTML.li(HTML.a(eid, href=self.dt.req.route_url('ecoregion', id=eid)))
         for eid in items],
         class_='unstyled')
Esempio n. 5
0
 def format(self, item):
     obj = self.get_obj(item)
     names = [
         self._cat(o) for o in obj.categories if o.language_pk in self.lang_dict]
     return HTML.ul(*[HTML.li(name) for name in names], class_="unstyled")
Esempio n. 6
0
 def format(self, item):
     names = [
         o.name for o in item.valueset.parameter.categories
         if o.language_pk == item.valueset.language_pk]
     return HTML.ul(*[HTML.li(name) for name in names], class_="unstyled")
Esempio n. 7
0
 def format(self, item):
     return HTML.ul(*[
         HTML.li(HTML.span(t, class_="label label-info"))
         for t in split_ids(item.name)
     ],
                    class_='unstyled')
Esempio n. 8
0
 def format(self, item):
     return HTML.ul(
         *[HTML.li(o.name + ',') for o in getattr(item, self.__rel_name__)],
         class_="unstyled")