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

1375 by William Grant
Add a user list -- as yet unlinked.
1
<html xmlns="http://www.w3.org/1999/xhtml"
2
      xmlns:py="http://genshi.edgewall.org/">
3
  <head>
4
    <title>Users</title>
5
  </head>
6
  <body>
7
    <h1>User list</h1>
8
    <div id="ivle_padding">
1757 by William Grant
Separate users and admins on the user list, and strike through those who are disabled.
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)}
1755 by William Grant
Add a form to create a user.
27
      <div class="horizontalactions">
28
        <a class="addaction" href="/users/+new">Create new user</a>
29
      </div>
1375 by William Grant
Add a user list -- as yet unlinked.
30
    </div>
31
  </body>
32
</html>