##// END OF EJS Templates
Corrected default user filtering on the user administration page.
Vincent Duvert -
r2414:e5f4085f beta
parent child Browse files
Show More
@@ -1,65 +1,65 b''
1 1 ## -*- coding: utf-8 -*-
2 2 <%inherit file="/base/base.html"/>
3 3
4 4 <%def name="title()">
5 5 ${_('Users administration')} - ${c.rhodecode_name}
6 6 </%def>
7 7
8 8 <%def name="breadcrumbs_links()">
9 9 ${h.link_to(_('Admin'),h.url('admin_home'))} &raquo; ${_('Users')}
10 10 </%def>
11 11
12 12 <%def name="page_nav()">
13 13 ${self.menu('admin')}
14 14 </%def>
15 15
16 16 <%def name="main()">
17 17 <div class="box">
18 18 <!-- box / title -->
19 19 <div class="title">
20 20 ${self.breadcrumbs()}
21 21 <ul class="links">
22 22 <li>
23 23 <span>${h.link_to(_(u'ADD NEW USER'),h.url('new_user'))}</span>
24 24 </li>
25 25
26 26 </ul>
27 27 </div>
28 28 <!-- end box / title -->
29 29 <div class="table">
30 30 <table class="table_disp">
31 31 <tr class="header">
32 32 <th></th>
33 33 <th class="left">${_('username')}</th>
34 34 <th class="left">${_('name')}</th>
35 35 <th class="left">${_('lastname')}</th>
36 36 <th class="left">${_('last login')}</th>
37 37 <th class="left">${_('active')}</th>
38 38 <th class="left">${_('admin')}</th>
39 39 <th class="left">${_('ldap')}</th>
40 40 <th class="left">${_('action')}</th>
41 41 </tr>
42 42 %for cnt,user in enumerate(c.users_list):
43 %if user.name !='default':
43 %if user.username !='default':
44 44 <tr class="parity${cnt%2}">
45 45 <td><div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(user.email,24)}"/> </div></td>
46 46 <td>${h.link_to(user.username,h.url('edit_user', id=user.user_id))}</td>
47 47 <td>${user.name}</td>
48 48 <td>${user.lastname}</td>
49 49 <td>${user.last_login}</td>
50 50 <td>${h.bool2icon(user.active)}</td>
51 51 <td>${h.bool2icon(user.admin)}</td>
52 52 <td>${h.bool2icon(bool(user.ldap_dn))}</td>
53 53 <td>
54 54 ${h.form(url('delete_user', id=user.user_id),method='delete')}
55 55 ${h.submit('remove_',_('delete'),id="remove_user_%s" % user.user_id,
56 56 class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this user: %s') % user.username+"');")}
57 57 ${h.end_form()}
58 58 </td>
59 59 </tr>
60 60 %endif
61 61 %endfor
62 62 </table>
63 63 </div>
64 64 </div>
65 65 </%def>
General Comments 0
You need to be logged in to leave comments. Login now