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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      xmlns:py="http://genshi.edgewall.org/" py:strip="">

  <body py:strip="">
    <div id="ivle_padding">
      <h2>IVLE Subject Homepages</h2>
      <py:if test="(len(enrolled_subjects) > 0)">
        <h2>Subjects</h2>
        <ul>
          <py:for each="subject in enrolled_subjects">
            <py:choose test="subject['url']">
              <py:when test="None">
                <li>${subject['name']} (no home page)</li>
              </py:when>
              <py:otherwise>
                <li><a href="${subject['url']}">${subject['name']}</a></li>
              </py:otherwise>
            </py:choose>
          </py:for>
        </ul>
      </py:if>
      <py:if test="(len(other_subjects) > 0)">
        <h3>Other Subjects</h3>
        <p>You are not currently enrolled in these subjects</p>
        <ul>
          <py:for each="subject in other_subjects">
            <py:choose test="subject['url']">
             <py:when test="None">
               <li>${subject['name']} (no home page)</li>
             </py:when>
             <py:otherwise>
               <li><a href="${subject['url']}">${subject['name']}</a></li>
             </py:otherwise>
            </py:choose>
          </py:for>
        </ul>
      </py:if>
    </div>
  </body>
</html>