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

« back to all changes in this revision

Viewing changes to www/apps/subjects/toplevel_menu.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
 
 
5
  <body py:strip="">
 
6
    <div id="ivle_padding">
 
7
      <h2>IVLE Subject Homepages</h2>
 
8
      <py:if test="(len(enrolled_subjects) > 0)">
 
9
        <h2>Subjects</h2>
 
10
        <ul>
 
11
          <py:for each="subject in enrolled_subjects">
 
12
            <py:choose test="subject['url']">
 
13
              <py:when test="None">
 
14
                <li>${subject['name']} (no home page)</li>
 
15
              </py:when>
 
16
              <py:otherwise>
 
17
                <li><a href="${subject['url']}">${subject['name']}</a></li>
 
18
              </py:otherwise>
 
19
            </py:choose>
 
20
          </py:for>
 
21
        </ul>
 
22
      </py:if>
 
23
      <py:if test="(len(other_subjects) > 0)">
 
24
        <h3>Other Subjects</h3>
 
25
        <p>You are not currently enrolled in these subjects</p>
 
26
        <ul>
 
27
          <py:for each="subject in other_subjects">
 
28
            <py:choose test="subject['url']">
 
29
             <py:when test="None">
 
30
               <li>${subject['name']} (no home page)</li>
 
31
             </py:when>
 
32
             <py:otherwise>
 
33
               <li><a href="${subject['url']}">${subject['name']}</a></li>
 
34
             </py:otherwise>
 
35
            </py:choose>
 
36
          </py:for>
 
37
        </ul>
 
38
      </py:if>
 
39
    </div>
 
40
  </body>
 
41
</html>