1165.3.2
by Nick Chadwick
Created a new view for IVLE, allowing lecturers and tutors to |
1 |
<html xmlns="http://www.w3.org/1999/xhtml" |
2 |
xmlns:py="http://genshi.edgewall.org/"> |
|
3 |
<head>
|
|
4 |
<title>Subjects</title> |
|
5 |
</head> |
|
6 |
<body>
|
|
7 |
<h1>Subjects</h1> |
|
8 |
<div id="ivle_padding"> |
|
9 |
<p py:if="len(semesters) == 0">You are not currently enrolled in any subjects.</p> |
|
1371
by Matt Giuca
admin/subject: Now sends a list of offerings the user is enrolled in to the Genshi template, rather than a list of enrolment objects (of which only the offering is observed). This allows us to send non-enrolment offerings to the template. |
10 |
<py:for each="(semester, offerings) in semesters"> |
1370
by Matt Giuca
Subjects list: Rather than use h2 for current, h3 for inactive, use h2 for both with class subject_current for current subjects (more semantic). |
11 |
<h2 py:attrs="{'class': 'subject_current' if semester.state == u'current' else None}"> |
12 |
${semester.year}, semester ${semester.semester} |
|
13 |
</h2> |
|
1165.3.2
by Nick Chadwick
Created a new view for IVLE, allowing lecturers and tutors to |
14 |
<ul>
|
1442.1.3
by William Grant
Link to the offering index from the subject listing, and remove the action links. |
15 |
<li py:for="offering in offerings"> |
1525
by Matt Giuca
ivle/webapp/admin/templates/subjects.html: Use req.publisher.generate rather than rolling its own offering_url function. |
16 |
<a href="${req.publisher.generate(offering)}">${offering.subject.name}</a> |
1442.1.3
by William Grant
Link to the offering index from the subject listing, and remove the action links. |
17 |
</li> |
1165.3.2
by Nick Chadwick
Created a new view for IVLE, allowing lecturers and tutors to |
18 |
</ul> |
19 |
</py:for> |
|
1600
by William Grant
Add 'Create new offering' link to /subjects, and rebrand the 'Manage subjects' link to include semesters too. |
20 |
<div class="horizontalactions" py:if="req.user.admin"> |
21 |
<a class="addaction" href="/subjects/+new-offering">Create new offering</a> |
|
22 |
<a class="manageaction" href="/subjects/+manage">Manage subjects and semesters</a> |
|
1596
by William Grant
Split subject/semester management out onto a separate page, and link to SemesterEdit. |
23 |
</div> |
1165.3.2
by Nick Chadwick
Created a new view for IVLE, allowing lecturers and tutors to |
24 |
</div> |
25 |
</body> |
|
26 |
</html> |