~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/breadcrumbs.py

  • Committer: Matt Giuca
  • Date: 2010-02-25 02:53:40 UTC
  • Revision ID: matt.giuca@gmail.com-20100225025340-ei60f48zjmnu144d
Groups page is now 'Project set' page. Changed title. It now lists all projects in the set, as well as groups.

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
 
94
94
 
95
95
class ProjectsBreadcrumb(object):
96
 
    """Static 'Projects' breadcrumb to precede ProjectBreadcrumb.
97
 
    context must be a ProjectSet.
98
 
    """
 
96
    """Static 'Projects' breadcrumb to precede ProjectBreadcrumb."""
99
97
    def __init__(self, req, context):
100
98
        self.req = req
101
99
        self.context = context
102
100
 
103
101
    @property
104
102
    def url(self):
105
 
        return self.req.publisher.generate(self.context.offering, None,
106
 
                                           '+projects')
 
103
        return self.req.publisher.generate(self.context, None, '+projects')
107
104
 
108
105
    @property
109
106
    def text(self):
125
122
 
126
123
    @property
127
124
    def extra_breadcrumbs_before(self):
128
 
        return [ProjectsBreadcrumb(self.req, self.context.project_set)]
 
125
        return [ProjectsBreadcrumb(self.req, self.context.project_set.offering)]
129
126
 
130
127
 
131
128
class EnrolmentsBreadcrumb(object):