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

« back to all changes in this revision

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

  • Committer: Matt Giuca
  • Date: 2010-02-12 03:33:38 UTC
  • Revision ID: matt.giuca@gmail.com-20100212033338-z5sc1gh7ea3y30vx
Tutors can now (once again) edit worksheets.
database: Created a new capability, 'edit_worksheets', which is set for tutors
    and above.
    The 'edit' capability for worksheets is now derived from the
    'edit_worksheets' capability in the offering, rather than 'edit'.
All checks to do with creating or editing worksheets (in general, not specific
ones) check 'edit_worksheets'. Checks specific to a worksheet still check the
'edit' capability, on the worksheet itself.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
    <py:def function="offering_url(offering)">/subjects/${offering.subject.short_name}/${offering.semester.year}/${offering.semester.semester}</py:def>
15
15
    <h1>${worksheet.name} in ${subject.name}</h1>
16
16
    <div id="ivle_padding">
17
 
      <div class="contextactions" py:if="'edit' in worksheet.offering.get_permissions(user)">
 
17
      <div class="contextactions" py:if="'edit' in worksheet.get_permissions(user)">
18
18
        <a class="editaction" href="${offering_url(worksheet.offering)}/+worksheets/${worksheet.identifier}/+edit">Edit this worksheet</a>
19
19
      </div>
20
20
      <!-- Display the Table Of Contents -->