~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/templates/subjects.html

  • Committer: me at id
  • Date: 2009-01-15 05:53:45 UTC
  • mto: This revision was merged to the branch mainline in revision 1090.
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:branches%2Fstorm:1161
bin/ivle-showenrolment: Switch to ivle.database.User.enrolments from
    ivle.db.get_enrolment, removing the dependency on ivle.db.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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>
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}
13
 
        </h2>
14
 
        <ul>
15
 
          <li py:for="offering in offerings">
16
 
            <a href="${req.publisher.generate(offering)}">${offering.subject.name}</a>
17
 
          </li>
18
 
        </ul>
19
 
      </py:for>
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>
23
 
      </div>
24
 
    </div>
25
 
  </body>
26
 
</html>