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

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/subjects.html

  • Committer: William Grant
  • Date: 2009-02-23 23:47:02 UTC
  • mfrom: (1099.1.211 new-dispatch)
  • Revision ID: grantw@unimelb.edu.au-20090223234702-db4b1llly46ignwo
Merge from lp:~ivle-dev/ivle/new-dispatch.

Pretty much everything changes. Reread the setup docs. Backup your databases.
Every file is now in a different installed location, the configuration system
is rewritten, the dispatch system is rewritten, URLs are different, the
database is different, worksheets and exercises are no longer on the
filesystem, we use a templating engine, jail service protocols are rewritten,
we don't repeat ourselves, we have authorization rewritten, phpBB is gone,
and probably lots of other things that I cannot remember.

This is certainly the biggest commit I have ever made, and hopefully
the largest I ever will.

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