~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-17 05:37:21 UTC
  • mfrom: (1442.1.33 offering-home)
  • Revision ID: me@williamgrant.id.au-20091217053721-cesek4r55zbsyj4b
Replace the offering worksheets page with an offering index, including project information.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html xmlns="http://www.w3.org/1999/xhtml"
2
 
      xmlns:py="http://genshi.edgewall.org/">
3
 
  <head>
4
 
    <title>Worksheets - ${subject.name}</title>
5
 
  </head>
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
 
    <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>
13
 
      <p py:if="len(worksheets) == 0">There are not currently any worksheets for this subject.</p>
14
 
      <ul id="tutorial-toc">
15
 
        <py:for each="worksheet in worksheets">
16
 
          <li>
17
 
            <a href="${offering_url(offering)}/+worksheets/${worksheet.id}">${worksheet.name}</a>
18
 
            <py:if test="worksheet.assessable">
19
 
              <ul>
20
 
                <li class="${worksheet.complete_class}">
21
 
                  Completed ${worksheet.mand_done}/${worksheet.total}${worksheet.optional_message}
22
 
                </li>
23
 
              </ul>
24
 
            </py:if>
25
 
          </li>
26
 
        </py:for>
27
 
      </ul>
28
 
      <py:if test="problems_total > 0">
29
 
        <ul>
30
 
          <li class="${complete_class}">
31
 
            Total exercises completed: ${problems_done}/${problems_total} (${problems_pct}%)
32
 
          </li>
33
 
        </ul> 
34
 
        <p style="font-weight: bold">
35
 
          Worksheet mark: ${mark}/${max_mark}
36
 
        </p>
37
 
      </py:if>
38
 
    </div>            
39
 
  </body>
40
 
</html>