1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/">
<head>
<title>Worksheets - ${subject.name}</title>
</head>
<body>
<py:def function="offering_url(offering)">/subjects/${offering.subject.short_name}/${offering.semester.year}/${offering.semester.semester}</py:def>
<h1>Worksheets for ${subject.name}</h1>
<div id="ivle_padding">
<p py:if="len(worksheets) == 0">There are not currently any worksheets for this subject.</p>
<ul id="tutorial-toc">
<py:for each="worksheet in worksheets">
<li>
<a href="${offering_url(offering)}/+worksheets/${worksheet.id}">${worksheet.name}</a>
<py:if test="worksheet.assessable">
<ul>
<li class="${worksheet.complete_class}">
Completed ${worksheet.mand_done}/${worksheet.total}${worksheet.optional_message}
</li>
</ul>
</py:if>
</li>
</py:for>
</ul>
<py:if test="problems_total > 0">
<ul>
<li class="${complete_class}">
Total exercises completed: ${problems_done}/${problems_total} (${problems_pct}%)
</li>
</ul>
<p style="font-weight: bold">
Worksheet mark: ${mark}/${max_mark}
</p>
</py:if>
<py:if test="'edit' in offering.get_permissions(user)">
<p><a href="${offering_url(offering)}/+worksheets/+edit">Edit worksheets</a></p>
</py:if>
</div>
</body>
</html>
|