1394.2.6
by William Grant
Add a basic ExerciseView, which will soon allow testing. |
1 |
<html xmlns="http://www.w3.org/1999/xhtml" |
2 |
xmlns:py="http://genshi.edgewall.org/"> |
|
3 |
<head>
|
|
4 |
<title>Test - ${exercise.name}</title> |
|
5 |
<!-- These let the javascript know which worksheet is open -->
|
|
6 |
<script type="text/javascript"> |
|
7 |
worksheet = null; |
|
8 |
exercise = '${exercise.id}'; |
|
9 |
</script> |
|
10 |
</head> |
|
11 |
<body>
|
|
12 |
<h1>${exercise.name}</h1> |
|
13 |
<div id="ivle_padding"> |
|
1544
by Matt Giuca
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. |
14 |
<div py:if="'edit' in exercise.get_permissions(req.user, req.config)" |
1463.1.3
by William Grant
ExercisesView links only to the exercise's index, which now has edit and delete links. |
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> |
|
1394.2.14
by William Grant
Make ExerciseView a bit more descriptive. |
19 |
<p>
|
20 |
You may test this exercise here. Submission results will not be recorded as they would be in a worksheet. |
|
1394.2.11
by William Grant
Add an edit link to ExerciseView. |
21 |
</p> |
1394.2.6
by William Grant
Add a basic ExerciseView, which will soon allow testing. |
22 |
${exercise_fragment} |
23 |
</div> |
|
24 |
</body> |
|
25 |
</html> |