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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-07-05 10:09:14 UTC
  • mto: (1294.4.2 ui-the-third)
  • mto: This revision was merged to the branch mainline in revision 1353.
  • Revision ID: grantw@unimelb.edu.au-20090705100914-gh3b7d2ahv3c5n7r
Add a SubjectBreadcrumb.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
from ivle.database import Offering
19
19
 
 
20
class SubjectBreadcrumb(object):
 
21
    def __init__(self, req, context):
 
22
        self.req = req
 
23
        self.context = context
 
24
 
 
25
    @property
 
26
    def text(self):
 
27
        return self.context.name
 
28
 
20
29
class OfferingBreadcrumb(object):
21
30
    def __init__(self, req, context):
22
31
        self.req = req