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

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/templates/users.html

  • Committer: Matt Giuca
  • Date: 2010-07-22 02:12:36 UTC
  • mfrom: (1812.1.13 late-submit)
  • Revision ID: matt.giuca@gmail.com-20100722021236-k8kt4cqdtywzpk24
Merge from trunk late-submit.
Students may now submit projects after the deadline, but they are warned that the submission is late.
Lecturers are now given data on which submissions were made late, and how many days.
(LP: #598346)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
  <body>
7
7
    <h1>User list</h1>
8
8
    <div id="ivle_padding">
9
 
      <table class="pretty_table">
10
 
        <thead><tr><th>Login</th><th>Name</th><th>Admin</th></tr></thead>
11
 
        <tbody>
12
 
          <tr py:for="user in users">
13
 
            <td><a href="${req.publisher.generate(user)}">${user.login}</a></td>
14
 
            <td>${user.display_name}</td>
15
 
            <td><py:if test="user.admin">yes</py:if></td>
16
 
          </tr>
17
 
        </tbody>
18
 
      </table>
 
9
      <div class="majorsection" py:def="userlist(title, admin)"
 
10
           py:if="users.find(admin=admin).count()"
 
11
           py:with="these_users = users.find(admin=admin)">
 
12
        <h2>${title}</h2>
 
13
        <table class="pretty_table">
 
14
          <thead><tr><th>Login</th><th>Name</th></tr></thead>
 
15
          <tbody>
 
16
            <tr py:for="user in these_users">
 
17
              <td py:attrs="{'class': 'disabled_user'} if user.state == u'disabled' else {}">
 
18
                <a href="${req.publisher.generate(user)}">${user.login}</a>
 
19
              </td>
 
20
              <td>${user.display_name}</td>
 
21
            </tr>
 
22
          </tbody>
 
23
        </table>
 
24
      </div>
 
25
      ${userlist("Admins", True)}
 
26
      ${userlist("Users", False)}
 
27
      <div class="horizontalactions">
 
28
        <a class="addaction" href="/users/+new">Create new user</a>
 
29
      </div>
19
30
    </div>
20
31
  </body>
21
32
</html>