Example #1
0
 def get_breadcrumbs(self, request, obj=None, add=False):
     """Create a list of breadcrumbs as named tuples of ('name', 'url')."""
     return (
         Breadcrumb(_('Home'), reverse('home')),
         Breadcrumb(
             _("Nominate any current, terminal taxonomic name for conservation listing in Western Australia"
               ), reverse("conservation:taxonconservationlisting-create")))
Example #2
0
 def get_breadcrumbs(self, request, obj=None, add=False):
     """Create a list of breadcrumbs as named tuples of ('name', 'url')."""
     return (Breadcrumb(_('Home'), reverse('home')),
             Breadcrumb(self.model._meta.verbose_name_plural,
                        self.model.list_url()),
             Breadcrumb(self.object.__str__(),
                        self.object.get_absolute_url()))
Example #3
0
 def get_breadcrumbs(self, request, obj=None, add=False):
     """Create a list of breadcrumbs as named tuples of ('name', 'url')."""
     return (
         Breadcrumb(_('Home'), reverse('home')),
         Breadcrumb(
             _("Nominate any ecological community for conservation listing in Western Australia"
               ),
             reverse("conservation:communityconservationlisting-create")))
Example #4
0
 def get_breadcrumbs(self, request, obj=None, add=False):
     """Create a list of breadcrumbs as named tuples of ('name', 'url')."""
     ca = self.get_initial()["conservation_action"]
     return (Breadcrumb(_('Home'), reverse('home')),
             Breadcrumb(ca, ca.get_absolute_url()),
             Breadcrumb(
                 "Create a new {0}".format(self.model._meta.verbose_name),
                 None))
Example #5
0
 def get_breadcrumbs(self, request, obj=None, add=False):
     """Create a list of breadcrumbs as named tuples of ('name', 'url')."""
     return (
         Breadcrumb(_('Home'), reverse('home')),
         # Breadcrumb(self.model._meta.verbose_name_plural, self.model.list_url()),
         Breadcrumb(
             "Create a new {0}".format(self.model._meta.verbose_name),
             None))
Example #6
0
 def get_breadcrumbs(self, request, obj=None, add=False):
     """Create a list of breadcrumbs as named tuples of ('name', 'url')."""
     return (Breadcrumb(_('Home'), reverse('home')),
             Breadcrumb(self.model._meta.verbose_name_plural,
                        self.model.list_url()),
             Breadcrumb(
                 "Classification of {0}".format(self.object.canonical_name),
                 '{0}?name_id={1}'.format(reverse('taxonomy:taxon-list'),
                                          self.object.name_id)),
             Breadcrumb(self.object.__str__(),
                        self.object.get_absolute_url()))