Mercurial > kallithea
comparison pylons_app/templates/admin/users/users.html @ 127:20dc7a5eb748
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 03 May 2010 19:07:54 +0200 |
parents | pylons_app/templates/users.html@3ac4350b7848 |
children | 9936a1d359e0 |
comparison
equal
deleted
inserted
replaced
126:cfddee9d3693 | 127:20dc7a5eb748 |
---|---|
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> | |
22 ${h.link_to(u'Users',h.url('users'), class_="current_submenu")} | |
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 user in c.users_list: | |
36 <tr> | |
37 <td>${user.user_id}</td> | |
38 <td>${h.link_to(user.username,h.url('edit_user', id=user.user_id))}</td> | |
39 <td>${user.active}</td> | |
40 <td>${user.admin}</td> | |
41 <td> | |
42 ${h.form(url('user', id=user.user_id),method='delete')} | |
43 ${h.submit('remove','remove',class_="submit")} | |
44 ${h.end_form()} | |
45 </td> | |
46 </tr> | |
47 %endfor | |
48 </table> | |
49 <h3>${h.link_to(u'Add user',h.url('new_user'))}</h3> | |
50 </div> | |
51 | |
52 </%def> |