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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2010-02-17 08:50:16 UTC
  • Revision ID: grantw@unimelb.edu.au-20100217085016-g0sy4ylul7t3v8uf
Add breadcrumbs for enrolments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
            offering_to_enrolment, subject_url, semester_url, offering_url,
54
54
            projectset_url, project_url, enrolment_url)
55
55
from ivle.webapp.admin.breadcrumbs import (SubjectBreadcrumb,
56
 
            OfferingBreadcrumb, UserBreadcrumb, ProjectBreadcrumb)
 
56
            OfferingBreadcrumb, UserBreadcrumb, ProjectBreadcrumb,
 
57
            EnrolmentBreadcrumb)
57
58
from ivle.webapp.core import Plugin as CorePlugin
58
59
from ivle.webapp.groups import GroupsView
59
60
from ivle.webapp.media import media_url
547
548
    template = 'templates/enrolments.html'
548
549
    tab = 'subjects'
549
550
    permission = 'edit'
 
551
    breadcrumb_text = 'Enrolments'
550
552
 
551
553
    def populate(self, req, ctx):
552
554
        ctx['req'] = req
757
759
                   Offering: OfferingBreadcrumb,
758
760
                   User: UserBreadcrumb,
759
761
                   Project: ProjectBreadcrumb,
 
762
                   Enrolment: EnrolmentBreadcrumb,
760
763
                   }
761
764
 
762
765
    tabs = [