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

« back to all changes in this revision

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

  • Committer: Nick Chadwick
  • Date: 2009-03-09 00:45:58 UTC
  • mfrom: (1156 trunk)
  • mto: This revision was merged to the branch mainline in revision 1162.
  • Revision ID: chadnickbok@gmail.com-20090309004558-xvvj990b9h9y23bu
MergedĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
    <title>${worksheet.name} - ${subject.name}</title>
5
5
    <!-- These let the javascript know which worksheet is open -->
6
6
    <script type="text/javascript">
7
 
        subject = "${subject.code}";
 
7
        subject = "${subject.short_name}";
8
8
        worksheet = "${worksheet.identifier}";
9
9
        year = "${year}";
10
10
        semester = "${semester}";
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>