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

« back to all changes in this revision

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

  • Committer: Nick Chadwick
  • Date: 2009-02-25 16:39:59 UTC
  • mto: (1099.1.227 exercise-ui)
  • mto: This revision was merged to the branch mainline in revision 1162.
  • Revision ID: chadnickbok@gmail.com-20090225163959-3hsedlesu2pjm12e
Added a few extra files. I'm not sure if they're necessary, and I don't
have time to find out.

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
 
    <py:def function="offering_url(offering)">/subjects/${offering.subject.short_name}/${offering.semester.year}/${offering.semester.semester}</py:def>
8
 
    <h1>Subjects</h1>
9
 
    <div id="ivle_padding">
10
 
      <p py:if="len(semesters) == 0">You are not currently enrolled in any subjects.</p>
11
 
      <py:for each="(semester, offerings) in semesters">
12
 
        <h2 py:attrs="{'class': 'subject_current' if semester.state == u'current' else None}">
13
 
          ${semester.year}, semester ${semester.semester}
14
 
        </h2>
15
 
        <ul>
16
 
          <li py:for="offering in offerings">
17
 
            <a href="${offering_url(offering)}">${offering.subject.name}</a>
18
 
          </li>
19
 
        </ul>
20
 
      </py:for>
21
 
    </div>
22
 
  </body>
23
 
</html>