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

1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
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>