~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-02-27 07:43:29 UTC
  • Revision ID: grantw@unimelb.edu.au-20090227074329-d0rn5jmx7vve1nu9
Show a link to WorksheetsEditView on WorksheetsView if we have privileges.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
    <title>Worksheets - ${subject.name}</title>
5
5
  </head>
6
6
  <body>
 
7
    <py:def function="offering_url(offering)">/subjects/${offering.subject.short_name}/${offering.semester.year}/${offering.semester.semester}</py:def>
7
8
    <h1>Worksheets for ${subject.name}</h1>
8
9
    <div id="ivle_padding">
9
10
      <ul id="tutorial-toc">
10
11
        <py:for each="worksheet in worksheets">
11
12
          <li>
12
 
            <a href="/subjects/${subject.short_name}/${year}/${semester}/+worksheets/${worksheet.id}">${worksheet.name}</a>
 
13
            <a href="${offering_url(offering)}/+worksheets/${worksheet.id}">${worksheet.name}</a>
13
14
            <py:if test="worksheet.assessable">
14
15
              <ul>
15
16
                <li class="${worksheet.complete_class}">
30
31
          Worksheet mark: ${mark}/${max_mark}
31
32
        </p>
32
33
      </py:if>
 
34
      <py:if test="'edit' in offering.get_permissions(user)">
 
35
        <p><a href="${offering_url(offering)}/+worksheets/+edit">Edit worksheets</a></p>
 
36
      </py:if>
33
37
    </div>            
34
38
  </body>
35
39
</html>