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

« back to all changes in this revision

Viewing changes to ivle/webapp/groups/template.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:py="http://genshi.edgewall.org/">
3
 
  <head>
4
 
    <title>Project set for ${projectset.offering.subject.name}</title>
5
 
  </head>
6
 
  <body>
7
 
    <h1>Project set for ${projectset.offering.subject.name}</h1>
8
 
    <div id="ivle_padding">
9
 
      <div class="contextactions">
10
 
        <a py:if="'edit' in permissions"
11
 
           class="editaction"
12
 
           href="${req.publisher.generate(projectset, ProjectSetEdit)}">
13
 
           Change details
14
 
        </a>
15
 
      </div>
16
 
      <py:if test="not projectset.is_group">
17
 
      <p>Non-group projects.</p>
18
 
      </py:if>
19
 
      <py:if test="projectset.is_group">
20
 
      <p>Groups of maximum size ${projectset.max_students_per_group}.</p>
21
 
      </py:if>
22
 
      <div class="majorsection">
23
 
        <h2>Projects</h2>
24
 
        <table class="pretty_table">
25
 
          <thead><tr><th>Name</th><th>Actions</th></tr></thead>
26
 
          <tbody>
27
 
            <tr py:for="project in projectset.projects">
28
 
              <td><a href="${req.publisher.generate(project)}">${project.name}</a></td>
29
 
            <td><a href='${req.publisher.generate(project, ProjectEdit)}'><img
30
 
                  src='/+media/ivle.webapp.core/images/interface/pencil.png'
31
 
                  alt="Edit" title="Edit project" /></a>
32
 
                <a href='${req.publisher.generate(project, ProjectDelete)}'><img
33
 
                  src='/+media/ivle.webapp.core/images/interface/delete.png'
34
 
                  alt="Delete" title="Delete project" /></a>
35
 
            </td>
36
 
            </tr>
37
 
          </tbody>
38
 
        </table>
39
 
        <p><a class="addaction" href="${req.publisher.generate(projectset, ProjectNew)}">Add a new project</a></p>
40
 
      </div>
41
 
      <div py:if="projectset.is_group" class="majorsection">
42
 
        <h2>Groups</h2>
43
 
        <table class="pretty_table">
44
 
          <thead><tr><th>Name</th><th>Management</th></tr></thead>
45
 
          <tbody>
46
 
            <tr py:for="group in projectset.project_groups"
47
 
                id="project_group_${group.id}">
48
 
              <td>${group.name}</td>
49
 
              <td><a onclick="manage_group(${projectset.offering.id}, ${group.id} ,'project_group_${group.id}')"
50
 
                 class="choice"
51
 
                 id="project_group_${group.id}_button">
52
 
                <img src="/+media/ivle.webapp.core/images/interface/group.png" alt="Manage" title="Manage" />
53
 
              </a></td>
54
 
            </tr>
55
 
          </tbody>
56
 
        </table>
57
 
        <p><span class="addaction">
58
 
          <input value="Add a new group" type="button" onclick="create_new_group(${projectset.id})" />
59
 
        </span></p>
60
 
      </div>
61
 
    </div>
62
 
  </body>
63
 
</html>