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

« back to all changes in this revision

Viewing changes to ivle/webapp/filesystem/diff/__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:
30
30
from ivle.webapp.base.xhtml import XHTMLView
31
31
from ivle.webapp.base.plugins import ViewPlugin, MediaPlugin
32
32
from ivle.webapp.errors import NotFound, BadRequest
33
 
from ivle.webapp.filesystem import make_path_segments
 
33
from ivle.webapp.filesystem import make_path_breadcrumbs
34
34
from ivle.webapp import ApplicationRoot
35
35
 
36
36
class DiffView(XHTMLView):
78
78
        )
79
79
 
80
80
        ctx['title'] = os.path.normpath(self.path).rsplit('/', 1)[-1]
81
 
        ctx['paths'] = make_path_segments(self.path)
 
81
        self.extra_breadcrumbs = make_path_breadcrumbs(req, self.subpath,
 
82
                                                   suffix='(Subversion diff)')
82
83
 
83
84
        # Create a dict with (name, HTMLdiff) pairs for each non-empty diff.
84
85
        ctx['files'] = dict([(fd[0], genshi.XML(htmlfy_diff(fd[1])))