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

« back to all changes in this revision

Viewing changes to ivle/webapp/tutorial/__init__.py

  • Committer: Matt Giuca
  • Date: 2010-02-11 06:08:15 UTC
  • Revision ID: matt.giuca@gmail.com-20100211060815-9oue3zuuvg18w1yp
Exercises page redone to be consistent with worksheets page. Now looks much better, and contains an edit button for each exercise. Also renamed page headings for both pages to 'manage' rather than 'edit' (consistent with links to these pages).

Show diffs side-by-side

added added

removed removed

Lines of Context:
554
554
    def populate(self, req, ctx):
555
555
        self.plugin_styles[Plugin] = ['exercise_admin.css']
556
556
        ctx['req'] = req
 
557
        ctx['mediapath'] = media_url(req, Plugin, 'images/')
557
558
        ctx['exercises'] = req.store.find(Exercise).order_by(Exercise.id)
558
559
 
559
560