Ignore:
Timestamp:
12 Jan 2012, 11:43:29 (13 years ago)
Author:
Henrik Bettermann
Message:

Add breadcrumbs to student site layout. Omit the Students breadcrumb if principal is a student.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/browser/viewlets.py

    r7442 r7453  
    195195        breadcrumbs = IBreadcrumbContainer(self.view)
    196196        for breadcrumb in breadcrumbs:
    197             yield dict(
    198                 title = breadcrumb.title,
    199                 url = self.view.url(breadcrumb.context, breadcrumb.target)
    200                 )
     197            if breadcrumb.target:
     198                yield dict(
     199                    title = breadcrumb.title,
     200                    url = self.view.url(breadcrumb.context, breadcrumb.target)
     201                    )
    201202
    202203
Note: See TracChangeset for help on using the changeset viewer.