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

« back to all changes in this revision

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

Give console and tutorial services security declarations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<html xmlns="http://www.w3.org/1999/xhtml"
2
2
      xmlns:py="http://genshi.edgewall.org/">
3
3
  <head>
4
 
    <title>Worksheets - ${subject.name}</title>
 
4
    <title>Tutorial - Subject Menu</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>
8
 
    <h1>Worksheets for ${subject.name}</h1>
9
7
    <div id="ivle_padding">
10
 
      <p py:if="len(worksheets) == 0">There are not currently any worksheets for this subject.</p>
 
8
      <h1>IVLE Tutorials - ${subject}</h1>
 
9
      <h2>Worksheets</h2>
11
10
      <ul id="tutorial-toc">
12
11
        <py:for each="worksheet in worksheets">
13
12
          <li>
14
 
            <a href="${offering_url(offering)}/+worksheets/${worksheet.id}">${worksheet.name}</a>
 
13
            <!-- XXX: Generate URL properly! -->
 
14
            <a href="/subjects/${subject}/+worksheets/${worksheet.id}">${worksheet.name}</a>
15
15
            <py:if test="worksheet.assessable">
16
16
              <ul>
17
17
                <li class="${worksheet.complete_class}">
32
32
          Worksheet mark: ${mark}/${max_mark}
33
33
        </p>
34
34
      </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
35
    </div>            
39
36
  </body>
40
37
</html>