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

« back to all changes in this revision

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

Improve the worksheet/exercise authoring experience a little.

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)"
 
15
           class="contextactions">
 
16
        <a class="editaction" href="${req.publisher.generate(exercise, ExerciseEditView)}">Edit exercise</a>
 
17
        <a class="deleteaction" href="${req.publisher.generate(exercise, ExerciseDeleteView)}">Delete exercise</a>
 
18
      </div>
14
19
      <p>
15
20
        You may test this exercise here. Submission results will not be recorded as they would be in a worksheet.
16
 
        <a py:if="'edit' in exercise.get_permissions(req.user)"
17
 
           href="${req.publisher.generate(exercise, ExerciseEditView)}">
18
 
         (edit this exercise)
19
 
        </a>
20
21
      </p>
21
22
      ${exercise_fragment}
22
23
    </div>