users.html
67 lines
| 2.1 KiB
| text/html
|
HtmlLexer
r547 | ## -*- coding: utf-8 -*- | |||
<%inherit file="/base/base.html"/> | ||||
<%def name="title()"> | ||||
Bradley M. Kuhn
|
r4116 | ${_('Users administration')} | ||
%if c.rhodecode_name: | ||||
· ${c.rhodecode_name} | ||||
%endif | ||||
r547 | </%def> | |||
<%def name="breadcrumbs_links()"> | ||||
Bradley M. Kuhn
|
r4116 | <input class="q_filter_box" id="q_filter" size="15" type="text" name="filter" placeholder="${_('quick filter...')}" value=""/> | ||
${h.link_to(_('Admin'),h.url('admin_home'))} » <span id="user_count">0</span> ${_('users')} | ||||
r547 | </%def> | |||
<%def name="page_nav()"> | ||||
Mads Kiilerich
|
r3197 | ${self.menu('admin')} | ||
r547 | </%def> | |||
<%def name="main()"> | ||||
<div class="box"> | ||||
<!-- box / title --> | ||||
<div class="title"> | ||||
r2673 | ${self.breadcrumbs()} | |||
r547 | <ul class="links"> | |||
<li> | ||||
Bradley M. Kuhn
|
r4116 | <a href="${h.url('new_user')}" class="btn btn-small btn-success"><i class="icon-plus"></i> ${_(u'Add User')}</a> | ||
r547 | </li> | |||
r1888 | </ul> | |||
r547 | </div> | |||
<!-- end box / title --> | ||||
Bradley M. Kuhn
|
r4116 | <div class="table-grid table yui-skin-sam" id="datatable_list_wrap"></div> | ||
r2658 | <div id="user-paginator" style="padding: 0px 0px 0px 20px"></div> | |||
r547 | </div> | |||
r2658 | ||||
<script> | ||||
var data = ${c.data|n}; | ||||
Bradley M. Kuhn
|
r4116 | var fields = [ | ||
{key: "gravatar"}, | ||||
{key: "raw_name"}, | ||||
{key: "username"}, | ||||
{key: "firstname"}, | ||||
{key: "lastname"}, | ||||
{key: "last_login"}, | ||||
{key: "last_login_raw"}, | ||||
{key: "active"}, | ||||
{key: "admin"}, | ||||
{key: "extern_type"}, | ||||
{key: "action"}, | ||||
r2658 | ]; | |||
Bradley M. Kuhn
|
r4116 | var column_defs = [ | ||
{key:"gravatar",label:"",sortable:false,}, | ||||
{key:"username",label:"${_('Username')}",sortable:true}, | ||||
{key:"firstname",label:"${_('Firstname')}",sortable:true,}, | ||||
{key:"lastname",label:"${_('Lastname')}",sortable:true,}, | ||||
{key:"last_login",label:"${_('Last login')}",sortable:true, sortOptions: { sortFunction: lastLoginSort }}, | ||||
{key:"active",label:"${_('Active')}",sortable:true,}, | ||||
{key:"admin",label:"${_('Admin')}",sortable:true,}, | ||||
{key:"extern_type",label:"${_('Auth type')}",sortable:true,}, | ||||
{key:"action",label:"${_('Action')}",sortable:false}, | ||||
]; | ||||
var counter = YUD.get('user_count'); | ||||
var sort_key = "username"; | ||||
YUI_datatable(data, fields, column_defs, counter, sort_key, ${c.visual.admin_grid_items}); | ||||
r2658 | </script> | |||
r547 | </%def> | |||