Mercurial > kallithea
comparison pylons_app/templates/users.html @ 48:8e250e86a670
Css fixes, implemented removal of users, and display draft
author | Marcin Kuzminski <marcin@python-blog.com> |
---|---|
date | Wed, 07 Apr 2010 21:10:43 +0200 |
parents | pylons_app/templates/users_manage.html@f6ac79182600 |
children | 3ada2f409c1c |
comparison
equal
deleted
inserted
replaced
47:f6ac79182600 | 48:8e250e86a670 |
---|---|
1 <%inherit file="base/base.html"/> | |
2 <%def name="title()"> | |
3 ${_('Repository managment')} | |
4 </%def> | |
5 <%def name="breadcrumbs()"> | |
6 ${h.link_to(u'Home',h.url('/'))} | |
7 / | |
8 ${h.link_to(u'Admin',h.url('admin_home'))} | |
9 / | |
10 ${h.link_to(u'Users managment',h.url('users'))} | |
11 </%def> | |
12 <%def name="page_nav()"> | |
13 <li>${h.link_to(u'Home',h.url('/'))}</li> | |
14 <li class="current">${_('Admin')}</li> | |
15 </%def> | |
16 <%def name="main()"> | |
17 <ul class="submenu"> | |
18 <li> | |
19 ${h.link_to(u'Repos',h.url('repos'))} | |
20 </li> | |
21 <li class="current_submenu"> | |
22 ${h.link_to(u'Users',h.url('users'))} | |
23 </li> | |
24 </ul> | |
25 <div> | |
26 <h2>${_('Mercurial users')}</h2> | |
27 <table> | |
28 <tr> | |
29 <th>Id</th> | |
30 <th>Username</th> | |
31 <th>Active</th> | |
32 <th>Admin</th> | |
33 <th>Action</th> | |
34 </tr> | |
35 %for i in c.users_list: | |
36 <tr> | |
37 <td>${i[0]}</td> | |
38 <td>${h.link_to(i[1],h.url('user', id=i[0]))}</td> | |
39 <td>${i[3]}</td> | |
40 <td>${i[4]}</td> | |
41 <td> | |
42 ${h.form(url('user', id=i[0]),method='delete')} | |
43 ${h.submit('remove','remove',class_="submit")} | |
44 ${h.end_form()} | |
45 </td> | |
46 </tr> | |
47 %endfor | |
48 </table> | |
49 </div> | |
50 | |
51 </%def> |