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

« back to all changes in this revision

Viewing changes to www/apps/tutorial/subjectmenu.html

  • Committer: chadnickbok
  • Date: 2009-02-02 04:00:25 UTC
  • Revision ID: svn-v4:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1189
Adding the changes from my genshi branch into trunk.

Most apps now use the Genshi templating engine, in preparation
for future changes to dispatch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html xmlns="http://www.w3.org/1999/xhtml"
 
2
      xmlns:xi="http://www.w3.org/2001/XInclude"
 
3
      xmlns:py="http://genshi.edgewall.org/" py:strip="">
 
4
  <head foo="bar" py:strip="">
 
5
    <title>Tutorial - Subject Menu</title>
 
6
  </head>
 
7
  <body class="innerbody" py:strip="">
 
8
  
 
9
    <div id="ivle_padding">
 
10
      <h1>IVLE Tutorials - ${subject}</h1>
 
11
      <h2>Worksheets</h2>
 
12
      <ul id="tutorial-toc">
 
13
        <py:for each="worksheet in worksheets">
 
14
          <li>
 
15
            <a href="${worksheet.loc}">${worksheet.name}</a>
 
16
            <py:if test="worksheet.assessable">
 
17
              <ul>
 
18
                <li class="${worksheet.complete_class}">
 
19
                  Completed ${worksheet.mand_done}/${worksheet.total}${worksheet.optional_message}
 
20
                </li>
 
21
              </ul>
 
22
            </py:if>
 
23
          </li>
 
24
        </py:for>
 
25
      </ul>
 
26
      <py:if test="problems_total > 0">
 
27
        <ul>
 
28
          <li class="${complete_class}">
 
29
            Total exercises completed: ${problems_done}/${problems_total} (${problems_pct}%)
 
30
          </li>
 
31
        </ul> 
 
32
        <p style="font-weight: bold">
 
33
          Worksheet mark: ${mark}/${max_mark}
 
34
        </p>
 
35
      </py:if>
 
36
    </div>            
 
37
  </body>
 
38
</html>