~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-19 05:59:35 UTC
  • Revision ID: grantw@unimelb.edu.au-20090519055935-mzyz7b2cryebamr4
Pretty dates in SubversionLogView.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
                                     response['error'])
58
58
 
59
59
        # No error. We must be safe.
 
60
        ctx['format_datetime'] = ivle.date.make_date_nice
 
61
        ctx['format_datetime_short'] = ivle.date.format_datetime_for_paragraph
 
62
 
60
63
        ctx['path'] = self.path
61
64
        ctx['url'] = req.make_path(os.path.join('svnlog', self.path))
62
65
        ctx['diffurl'] = req.make_path(os.path.join('diff', self.path))
72
75
        # Create URLs for each of the versioned files.
73
76
        # XXX: This scheme only works for stuff/!
74
77
        for log in ctx['logs']:
75
 
            log['date'] = ivle.date.make_date_nice(log['date'])
76
78
            for pathaction in log['paths']:
77
79
                pathaction.append(req.make_path(os.path.join('files',
78
80
                                  ivle.util.split_path(req.path)[0],