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

« back to all changes in this revision

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

Port ivle.webapp.filesystem.{diff,svnlog}'s media to the new framework.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        self.path = path
41
41
 
42
42
    def populate(self, req, ctx):
43
 
        req.styles = ["/media/diff/diff.css"] # CSS styles
 
43
        self.plugin_styles[Plugin] = ['diff.css']
44
44
 
45
45
        revfields = req.get_fieldstorage().getlist("r")
46
46
        if len(revfields) > 2:
103
103
        ('diff/', DiffView, {'path': ''}),
104
104
        ('diff/*(path)', DiffView),
105
105
    ]
 
106
 
 
107
    media = 'media'