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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-03-26 05:33:03 UTC
  • mto: (1165.3.1 submissions)
  • mto: This revision was merged to the branch mainline in revision 1174.
  • Revision ID: grantw@unimelb.edu.au-20090326053303-t1wsjswhk2sl2gml
Start a submission UI in ivle.webapp.submit.

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
 
      <ul>
10
 
        <py:for each="enrolment in enrolments">
11
 
          <li>
12
 
            <a href="/subjects/${enrolment.offering.subject.code}/${enrolment.offering.semester.year}/${enrolment.offering.semester.semester}/+worksheets">
13
 
              ${enrolment.offering.subject.name}
14
 
            </a>
15
 
          </li>
16
 
        </py:for>
17
 
      </ul>
 
10
      <p py:if="len(semesters) == 0">You are not currently enrolled in any subjects.</p>
 
11
      <py:for each="(semester, enrolments) in semesters">
 
12
        <py:choose test="semester.state">
 
13
          <h2 py:when="u'current'">${semester.year}, semester ${semester.semester}</h2>
 
14
          <h3 py:otherwise="">${semester.year}, semester ${semester.semester}</h3>
 
15
        </py:choose>
 
16
        <ul>
 
17
          <py:for each="enrolment in enrolments">
 
18
            <li>
 
19
              <a href="${offering_url(enrolment.offering)}/+worksheets">${enrolment.offering.subject.name}</a>
 
20
              <py:if test="'edit' in enrolment.offering.get_permissions(user)">
 
21
                -
 
22
                <a href="${offering_url(enrolment.offering)}/+groups">(administer groups)</a>
 
23
                <a href="${offering_url(enrolment.offering)}/+enrolments/+new">(enrol users)</a>
 
24
              </py:if>
 
25
            </li>
 
26
          </py:for>
 
27
        </ul>
 
28
      </py:for>
18
29
    </div>
19
30
  </body>
20
31
</html>