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

« back to all changes in this revision

Viewing changes to ivle/webapp/base/xhtml.py

  • Committer: William Grant
  • Date: 2009-07-05 06:22:08 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-20090705062208-ddxqc68c18xw2ejj
Render a breadcrumb for each ancestor.

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
        ctx['app_template'] = app
94
94
        ctx['title_img'] = media_url(req, CorePlugin,
95
95
                                     "images/chrome/root-breadcrumb.png")
 
96
        ctx['ancestry'] = req.router.get_ancestors(self.context)
 
97
        ctx['breadcrumb_text'] = lambda x: x # TODO: Do it properly.
 
98
        ctx['url'] = req.router.generate
96
99
        self.populate_headings(req, ctx)
97
100
        tmpl = loader.load(os.path.join(os.path.dirname(__file__), 
98
101
                                                        'ivle-headings.html'))