~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: 2010-02-11 09:09:53 UTC
  • Revision ID: grantw@unimelb.edu.au-20100211090953-592dk5jruwdg1qrq
Declare appropriate tabs on the rest of the views.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
    <title>Subjects</title>
5
5
  </head>
6
6
  <body>
 
7
    <py:def function="offering_url(offering)">/subjects/${offering.subject.short_name}/${offering.semester.year}/${offering.semester.semester}</py:def>
7
8
    <h1>Subjects</h1>
8
9
    <div id="ivle_padding">
9
10
      <p py:if="len(semesters) == 0">You are not currently enrolled in any subjects.</p>
13
14
        </h2>
14
15
        <ul>
15
16
          <li py:for="offering in offerings">
16
 
            <a href="${req.publisher.generate(offering)}">${offering.subject.name}</a>
 
17
            <a href="${offering_url(offering)}">${offering.subject.name}</a>
17
18
          </li>
18
19
        </ul>
19
20
      </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
21
    </div>
25
22
  </body>
26
23
</html>