1
<html xmlns="http://www.w3.org/1999/xhtml"
2
xmlns:py="http://genshi.edgewall.org/">
8
<div id="ivle_padding">
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)">
13
<table class="pretty_table">
14
<thead><tr><th>Login</th><th>Name</th></tr></thead>
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>
20
<td>${user.display_name}</td>
25
${userlist("Admins", True)}
26
${userlist("Users", False)}
27
<div class="horizontalactions">
28
<a class="addaction" href="/users/+new">Create new user</a>