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.20
by William Grant
ivle.webapp.admin.subject: Port www/apps/subjects to new framework. |
3 |
<head>
|
4 |
<title>Subjects</title> |
|
5 |
</head> |
|
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>Subjects</h1> |
1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
9 |
<div id="ivle_padding"> |
1138
by William Grant
SubjectsView now tells users if they have no enrolments. |
10 |
<p py:if="len(semesters) == 0">You are not currently enrolled in any subjects.</p> |
1125
by William Grant
Rework ivle.webapp.admin.subjects#SubjectsView to split offerings nicely by |
11 |
<py:for each="(semester, enrolments) in semesters"> |
12 |
<py:choose test="semester.state"> |
|
13 |
<h2 py:when="u'current'">${semester.year}, semester ${semester.semester}</h2> |
|
14 |
<h3 py:otherwise="">${semester.year}, semester ${semester.semester}</h3> |
|
15 |
</py:choose> |
|
16 |
<ul>
|
|
17 |
<py:for each="enrolment in enrolments"> |
|
18 |
<li>
|
|
1139
by William Grant
Show group administration links on SubjectsView where privileges allow it. |
19 |
<a href="${offering_url(enrolment.offering)}/+worksheets">${enrolment.offering.subject.name}</a> |
20 |
<py:if test="'edit' in enrolment.offering.get_permissions(user)"> |
|
1151
by William Grant
Show a link to +enrolments/+new on /subjects to appropriately-privileged |
21 |
- |
22 |
<a href="${offering_url(enrolment.offering)}/+groups">(administer groups)</a> |
|
23 |
<a href="${offering_url(enrolment.offering)}/+enrolments/+new">(enrol users)</a> |
|
1139
by William Grant
Show group administration links on SubjectsView where privileges allow it. |
24 |
</py:if> |
1125
by William Grant
Rework ivle.webapp.admin.subjects#SubjectsView to split offerings nicely by |
25 |
</li> |
26 |
</py:for> |
|
27 |
</ul> |
|
28 |
</py:for> |
|
1093
by chadnickbok
Adding the changes from my genshi branch into trunk. |
29 |
</div> |
30 |
</body> |
|
31 |
</html> |