~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-02-27 07:34:59 UTC
  • Revision ID: grantw@unimelb.edu.au-20090227073459-t5iiwjsb05nf7nug
Show group administration links on SubjectsView where privileges allow it.

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/${enrolment.offering.subject.short_name}/${enrolment.offering.semester.year}/${enrolment.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>
15
16
        <ul>
16
17
          <py:for each="enrolment in enrolments">
17
18
            <li>
18
 
              <a href="/subjects/${enrolment.offering.subject.short_name}/${enrolment.offering.semester.year}/${enrolment.offering.semester.semester}/+worksheets">
19
 
                ${enrolment.offering.subject.name}
20
 
              </a>
 
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
                - <a href="${offering_url(enrolment.offering)}/+groups">(administer groups)</a>
 
22
              </py:if>
21
23
            </li>
22
24
          </py:for>
23
25
        </ul>