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

« back to all changes in this revision

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

  • Committer: Matt Giuca
  • Date: 2009-12-08 12:15:24 UTC
  • Revision ID: matt.giuca@gmail.com-20091208121524-mjf2zr6n7jbicbbr
Subjects page: Removed the 'enrol users' link if unauthorized to make any enrolments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
              <py:if test="'edit' in offering.get_permissions(user)">
20
20
                -
21
21
                <a href="${offering_url(offering)}/+projects">(administer projects)</a>
22
 
                <a href="${offering_url(offering)}/+enrolments/+new">(enrol users)</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>
23
25
              </py:if>
24
26
            </li>
25
27
          </py:for>