1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
1 |
<html xmlns="http://www.w3.org/1999/xhtml" |
1099.1.25
by root
ivle.webapp.admin, ivle.webapp.groups, ivle.webapp.tutorial: Remove broken |
2 |
xmlns:py="http://genshi.edgewall.org/"> |
1099.1.19
by William Grant
ivle.webapp.tutorial: Port www/apps/tutorial to new framework. |
3 |
<head>
|
1099.1.207
by William Grant
Replace most of the tutorial headings and titles. |
4 |
<title>Worksheets - ${subject.name}</title> |
1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
5 |
</head> |
1099.1.19
by William Grant
ivle.webapp.tutorial: Port www/apps/tutorial to new framework. |
6 |
<body>
|
1140
by William Grant
Show a link to WorksheetsEditView on WorksheetsView if we have privileges. |
7 |
<py:def function="offering_url(offering)">/subjects/${offering.subject.short_name}/${offering.semester.year}/${offering.semester.semester}</py:def> |
1100.1.24
by Matt Giuca
(almost) all HTML pages updated: Moved <h1>s outside of the ivle-padding div. |
8 |
<h1>Worksheets for ${subject.name}</h1> |
1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
9 |
<div id="ivle_padding"> |
1147
by William Grant
Mention if an offering lacks worksheets, rather than displaying an empty |
10 |
<p py:if="len(worksheets) == 0">There are not currently any worksheets for this subject.</p> |
1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
11 |
<ul id="tutorial-toc"> |
12 |
<py:for each="worksheet in worksheets"> |
|
13 |
<li>
|
|
1140
by William Grant
Show a link to WorksheetsEditView on WorksheetsView if we have privileges. |
14 |
<a href="${offering_url(offering)}/+worksheets/${worksheet.id}">${worksheet.name}</a> |
1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
15 |
<py:if test="worksheet.assessable"> |
16 |
<ul>
|
|
17 |
<li class="${worksheet.complete_class}"> |
|
18 |
Completed ${worksheet.mand_done}/${worksheet.total}${worksheet.optional_message} |
|
19 |
</li> |
|
20 |
</ul> |
|
21 |
</py:if> |
|
22 |
</li> |
|
23 |
</py:for> |
|
24 |
</ul> |
|
25 |
<py:if test="problems_total > 0"> |
|
26 |
<ul>
|
|
27 |
<li class="${complete_class}"> |
|
28 |
Total exercises completed: ${problems_done}/${problems_total} (${problems_pct}%) |
|
29 |
</li> |
|
30 |
</ul> |
|
31 |
<p style="font-weight: bold"> |
|
32 |
Worksheet mark: ${mark}/${max_mark} |
|
33 |
</p> |
|
34 |
</py:if> |
|
1140
by William Grant
Show a link to WorksheetsEditView on WorksheetsView if we have privileges. |
35 |
<py:if test="'edit' in offering.get_permissions(user)"> |
36 |
<p><a href="${offering_url(offering)}/+worksheets/+edit">Edit worksheets</a></p> |
|
37 |
</py:if> |
|
1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
38 |
</div> |
39 |
</body> |
|
40 |
</html> |