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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-12-14 04:17:46 UTC
  • Revision ID: me@williamgrant.id.au-20091214041746-eurw04xssf4cvszc
Add ivle-dev-setup, a script to do most of the heavy lifting when setting up a new dev installation.

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
          <py:for each="offering in offerings">
 
17
            <li>
 
18
              <a href="${offering_url(offering)}/+worksheets">${offering.subject.name}</a>
 
19
              <py:if test="'edit' in offering.get_permissions(user)">
 
20
                -
 
21
                <a href="${offering_url(offering)}/+projects">(administer projects)</a>
 
22
                <py:if test="'enrol' in offering.get_permissions(user)">
 
23
                  <a href="${offering_url(offering)}/+enrolments/+new">(enrol users)</a>
 
24
                </py:if>
 
25
              </py:if>
 
26
            </li>
 
27
          </py:for>
 
28
        </ul>
 
29
      </py:for>
 
30
    </div>
 
31
  </body>
 
32
</html>