users.html
65 lines
| 2.3 KiB
| text/html
|
HtmlLexer
r547 | ## -*- coding: utf-8 -*- | |||
<%inherit file="/base/base.html"/> | ||||
<%def name="title()"> | ||||
r619 | ${_('Users administration')} - ${c.rhodecode_name} | |||
r547 | </%def> | |||
<%def name="breadcrumbs_links()"> | ||||
${h.link_to(_('Admin'),h.url('admin_home'))} » ${_('Users')} | ||||
</%def> | ||||
<%def name="page_nav()"> | ||||
${self.menu('admin')} | ||||
</%def> | ||||
<%def name="main()"> | ||||
<div class="box"> | ||||
<!-- box / title --> | ||||
<div class="title"> | ||||
${self.breadcrumbs()} | ||||
<ul class="links"> | ||||
<li> | ||||
Augusto Herrmann
|
r1472 | <span>${h.link_to(_(u'ADD NEW USER'),h.url('new_user'))}</span> | ||
r547 | </li> | |||
r1888 | ||||
</ul> | ||||
r547 | </div> | |||
<!-- end box / title --> | ||||
<div class="table"> | ||||
<table class="table_disp"> | ||||
<tr class="header"> | ||||
<th></th> | ||||
<th class="left">${_('username')}</th> | ||||
<th class="left">${_('name')}</th> | ||||
<th class="left">${_('lastname')}</th> | ||||
r954 | <th class="left">${_('last login')}</th> | |||
r547 | <th class="left">${_('active')}</th> | |||
<th class="left">${_('admin')}</th> | ||||
r712 | <th class="left">${_('ldap')}</th> | |||
r547 | <th class="left">${_('action')}</th> | |||
</tr> | ||||
%for cnt,user in enumerate(c.users_list): | ||||
Vincent Duvert
|
r2414 | %if user.username !='default': | ||
r547 | <tr class="parity${cnt%2}"> | |||
r714 | <td><div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(user.email,24)}"/> </div></td> | |||
r547 | <td>${h.link_to(user.username,h.url('edit_user', id=user.user_id))}</td> | |||
<td>${user.name}</td> | ||||
<td>${user.lastname}</td> | ||||
Vincent Duvert
|
r2416 | <td>${h.fmt_date(user.last_login)}</td> | ||
r712 | <td>${h.bool2icon(user.active)}</td> | |||
<td>${h.bool2icon(user.admin)}</td> | ||||
Thayne Harbaugh
|
r991 | <td>${h.bool2icon(bool(user.ldap_dn))}</td> | ||
r547 | <td> | |||
r1266 | ${h.form(url('delete_user', id=user.user_id),method='delete')} | |||
Augusto Herrmann
|
r1472 | ${h.submit('remove_',_('delete'),id="remove_user_%s" % user.user_id, | ||
r1827 | class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this user: %s') % user.username+"');")} | |||
r547 | ${h.end_form()} | |||
</td> | ||||
</tr> | ||||
%endif | ||||
%endfor | ||||
</table> | ||||
</div> | ||||
</div> | ||||
</%def> | ||||