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

« back to all changes in this revision

Viewing changes to ivle/webapp/tutorial/templates/exercise.html

  • Committer: Matt Giuca
  • Date: 2010-02-12 04:00:39 UTC
  • Revision ID: matt.giuca@gmail.com-20100212040039-vw9yf8p4s98g6nu9
Added an argument 'config' to every single get_permissions method throughout the program. All calls to get_permissions pass a config. This is to allow per-site policy configurations on permissions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
  <body>
12
12
    <h1>${exercise.name}</h1>
13
13
    <div id="ivle_padding">
14
 
      <div py:if="'edit' in exercise.get_permissions(req.user)"
 
14
      <div py:if="'edit' in exercise.get_permissions(req.user, req.config)"
15
15
           class="contextactions">
16
16
        <a class="editaction" href="${req.publisher.generate(exercise, ExerciseEditView)}">Edit exercise</a>
17
17
        <a class="deleteaction" href="${req.publisher.generate(exercise, ExerciseDeleteView)}">Delete exercise</a>