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

« back to all changes in this revision

Viewing changes to ivle/webapp/tutorial/templates/worksheet.html

  • Committer: William Grant
  • Date: 2009-02-27 07:56:41 UTC
  • Revision ID: grantw@unimelb.edu.au-20090227075641-olwf0lvjwe39a7rz
Tags: 0.1.9.6
Display an edit link in WorksheetView, if we have privileges.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
    </script>
12
12
  </head>
13
13
  <body>
 
14
    <py:def function="offering_url(offering)">/subjects/${offering.subject.short_name}/${offering.semester.year}/${offering.semester.semester}</py:def>
14
15
    <h1>${worksheet.name} in ${subject.name}</h1>
15
16
    <div id="ivle_padding">
 
17
      <py:if test="'edit' in worksheet.offering.get_permissions(user)">
 
18
        <p><a href="${offering_url(worksheet.offering)}/+worksheets/${worksheet.identifier}/+edit">Edit</a></p>
 
19
      </py:if>
16
20
      <!-- Display the Table Of Contents -->
17
21
      <div id="tutorial-toc">
18
22
        <h2>Contents</h2>