1
<html xmlns="http://www.w3.org/1999/xhtml"
2
xmlns:py="http://genshi.edgewall.org/">
4
<title>Subjects</title>
8
<div id="ivle_padding">
9
<p py:if="len(semesters) == 0">You are not currently enrolled in any subjects.</p>
10
<py:for each="(semester, offerings) in semesters">
11
<h2 py:attrs="{'class': 'subject_current' if semester.state == u'current' else None}">
12
${semester.year}, ${semester.display_name}
15
<li py:for="offering in offerings">
16
<a href="${req.publisher.generate(offering)}">${offering.subject.name}</a>
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>