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

« back to all changes in this revision

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

  • Committer: matt.giuca
  • Date: 2009-01-14 10:10:12 UTC
  • mto: This revision was merged to the branch mainline in revision 1090.
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:branches%2Fstorm:1132
The new ivle.database.User class is now used in Request and usrmgt, which
    means it is now almost universally used in favour of ivle.user.User (now
    deprecated).

Noticeable change: The minor bug where the change to a user object in the
    database is not reflected in the user's session (eg. changing nick doesn't
    update title until log out).

ivle.dispatch:
    Session now contains 'login' (username string) rather than 'user' (full
        ivle.user.User object). This is a unicode string now.

    req.user is now a ivle.database.User object rather than an ivle.user.User
        object. This makes for a whole lot of really subtle differences, but
        largely conforms to the same interface. Note that strings must now all
        be unicode.

    login: Removed use of ivle.db. Now uses User object.

    html: Now handles unicode login and config options.

ivle.db: Removed update_user. Now replaced with Storm model.

ivle.database: Renamed has_cap back to hasCap (saved for later). Fixed small
    unicode bug.

ivle.makeuser.make_svn_auth now takes a store object.

usrmgt-server: Use new User class.

userservice: Now uses User class internally.
    get_user action now returns ISO 8601 date format, rather than a
        time tuple. (Wasn't being used).
    get_user action no longer transmits local_password (small security risk;
        note that it wasn't possible to see this for any user other than
        yourself unless admin).

ivle.util - added function object_to_dict.

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 - Top Level</title>
6
 
  </head>
7
 
  <body class="innerbody" py:strip="">
8
 
    <div id="ivle_padding">
9
 
      <h1>IVLE Tutorials</h1>
10
 
      <p>
11
 
        Welcome to the IVLE tutorial system.
12
 
  Please select a subject from the list below to select a worksheet
13
 
  for that subject.
14
 
      </p>
15
 
      <h2>Subjects</h2>
16
 
      <ul>
17
 
        <py:for each="subject in enrolled_subjects">
18
 
          <li>
19
 
            <a href="${subject.code}">${subject.name}</a>
20
 
          </li>
21
 
        </py:for>
22
 
      </ul>
23
 
      <py:if test="len(unenrolled_subjects) > 0">
24
 
        <h3>Other Subjects</h3>
25
 
        <p>
26
 
          You are not currently enrolled in these subjects.
27
 
           Your marks will not be counted.
28
 
        </p>
29
 
        <ul>
30
 
          <py:for each="subject in unenrolled_subjects">
31
 
            <li>
32
 
              <a href="${subject.code}">${subject.name}</a>
33
 
            </li>
34
 
          </py:for>
35
 
        </ul>
36
 
      </py:if>
37
 
    </div>
38
 
  </body>
39
 
</html>