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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-12-16 02:40:45 UTC
  • Revision ID: me@williamgrant.id.au-20091216024045-7hgfgxpdc8f6mnpe
Add context menus to the worksheet view, worksheets edit view, and worksheet view.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
    <py:def function="offering_url(offering)">/subjects/${offering.subject.short_name}/${offering.semester.year}/${offering.semester.semester}</py:def>
8
8
    <h1>Worksheets for ${subject.name}</h1>
9
9
    <div id="ivle_padding">
 
10
      <div class="contextactions" py:if="'edit' in offering.get_permissions(user)">
 
11
        <a class="editaction" href="${offering_url(offering)}/+worksheets/+edit">Edit worksheets</a>
 
12
      </div>
10
13
      <p py:if="len(worksheets) == 0">There are not currently any worksheets for this subject.</p>
11
14
      <ul id="tutorial-toc">
12
15
        <py:for each="worksheet in worksheets">
32
35
          Worksheet mark: ${mark}/${max_mark}
33
36
        </p>
34
37
      </py:if>
35
 
      <py:if test="'edit' in offering.get_permissions(user)">
36
 
        <p><a href="${offering_url(offering)}/+worksheets/+edit">Edit worksheets</a></p>
37
 
      </py:if>
38
38
    </div>            
39
39
  </body>
40
40
</html>