~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-05-18 12:06:46 UTC
  • Revision ID: grantw@unimelb.edu.au-20090518120646-0eai5fec2kacbav3
Replace SubversionLogView's "Subversion Log" titles with more BrowserView-esque ones.

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
31
 
31
32
class SubversionLogView(XHTMLView):
32
33
    template = 'template.html'
58
59
        # No error. We must be safe.
59
60
        ctx['path'] = self.path
60
61
        ctx['url'] = req.make_path(os.path.join('svnlog', self.path))
 
62
        ctx['title'] = self.path.rsplit('/', 1)[-1]
 
63
        ctx['paths'] = make_path_segments(self.path)
61
64
 
62
65
        sr = ivle.svn.revision_from_string(
63
66
                   req.get_fieldstorage().getfirst("r"))