~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 04:00:39 UTC
  • Revision ID: matt.giuca@gmail.com-20100212040039-vw9yf8p4s98g6nu9
Added an argument 'config' to every single get_permissions method throughout the program. All calls to get_permissions pass a config. This is to allow per-site policy configurations on permissions.

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.get_permissions(user)">
 
17
      <div class="contextactions" py:if="'edit' in worksheet.get_permissions(user, config)">
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 -->