Files @ 158ef33603b8
Branch filter:

Location: kallithea/rhodecode/templates/admin/users/user_edit_advanced.html

Bradley M. Kuhn
Add mousetrap.js file from Mousetrap 1.4.5, under the Apache license.

The file was download and verified via these commands:
$ git clone https://github.com/ccampbell/mousetrap.git
$ cd mousetrap; git checkout 1.4.5

The file in that repository named mousetrap.js is exactly the same one that
appeared in RhodeCode 2.2.5 in changeset c8d3c0d61d95.

The mousetrap.js states clearly that it is licensed under Apache-2.0.
<div style="font-size: 24px; color: #666666; padding: 0px 0px 10px 0px">${_('User: %s') % c.user.username}</div>

<dl class="dl-horizontal">
<%
 elems = [
    (_('Repositories'), len(c.user.repositories), ', '.join((x.repo_name for x in c.user.repositories))),
    (_('Source of Record'), c.user.extern_type, ''),
    (_('Created on'), h.fmt_date(c.user.created_on), ''),
    (_('Last Login'), c.user.last_login or '-', ''),
    (_('Member of User groups'), len(c.user.group_member), ', '.join((x.users_group.users_group_name for x in c.user.group_member)))
 ]
%>
%for dt, dd, tt in elems:
  <dt style="width:150px; text-align: left">${dt}:</dt>
  <dd style="margin-left: 160px" title="${tt}">${dd}</dd>
%endfor
</dl>

${h.form(h.url('delete_user', id=c.user.user_id),method='delete')}
    <button class="btn btn-small btn-danger" type="submit"
            onclick="return confirm('${_('Confirm to delete this user: %s') % c.user.username}');">
        <i class="icon-remove-sign"></i>
        ${_('Delete this user')}
    </button>
${h.end_form()}