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 ${semester.semester}
15
<li py:for="offering in offerings">
16
<a href="${req.publisher.generate(offering)}">${offering.subject.name}</a>
20
<py:if test="defined('subjects')">
22
<table class="pretty_table">
23
<thead><tr><th>Subject</th><th>Code</th><th>Actions</th></tr></thead>
25
<tr py:for="subject in subjects">
26
<td>${subject.name}</td>
27
<td>${subject.code}</td>
29
<a href="${req.publisher.generate(subject, SubjectEdit)}" title="Edit"><img src="${mediapath + 'interface/pencil.png'}" alt="Edit" /></a>
35
<a class="addaction" href="/subjects/+new">Create new subject</a>
36
<a class="addaction" href="/subjects/+new-offering">Create new offering</a>