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

« back to all changes in this revision

Viewing changes to ivle/webapp/filesystem/svnlog/__init__.py

  • Committer: William Grant
  • Date: 2009-07-05 12:11:48 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-20090705121148-9z2x7kk92ox2ncqi
Replace the breadcrumb-h1 with proper breadcrumbs throughout the filesystem views.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
from ivle.webapp.base.xhtml import XHTMLView
28
28
from ivle.webapp.base.plugins import ViewPlugin, MediaPlugin
29
29
from ivle.webapp.errors import NotFound, BadRequest
30
 
from ivle.webapp.filesystem import make_path_segments
 
30
from ivle.webapp.filesystem import make_path_breadcrumbs
31
31
from ivle.webapp import ApplicationRoot
32
32
 
33
33
class SubversionLogView(XHTMLView):
72
72
        ctx['url'] = req.make_path(os.path.join('svnlog', self.path))
73
73
        ctx['diffurl'] = req.make_path(os.path.join('diff', self.path))
74
74
        ctx['title'] = os.path.normpath(self.path).rsplit('/', 1)[-1]
75
 
        ctx['paths'] = make_path_segments(self.path)
 
75
        self.extra_breadcrumbs = make_path_breadcrumbs(req, self.subpath,
 
76
                                                   suffix='(Subversion log)')
76
77
 
77
78
        sr = ivle.svn.revision_from_string(
78
79
                   req.get_fieldstorage().getfirst("r"))