Files
@ e13a747e9c6a
Branch filter:
Location: kallithea/rhodecode/templates/admin/users/users.html - annotation
e13a747e9c6a
2.1 KiB
text/html
Migrate to jQuery 1.10.2 from 1.10.1.
Include the minified version of jQuery 1.10.2 instead of 1.10.1. The 1.10.2
files were download via these commands:
$ wget -N http://code.jquery.com/jquery-1.10.2.min.js
$ wget -N http://code.jquery.com/jquery-1.10.2.min.map
Meanwhile, since the Javascript code is covered by GPLv3, we should always
provide an up-to-date version of the source code. I have included it
here by creating the directory jquery-src. I extracted the correct version
of the source with the following commands:
$ git clone git://github.com/jquery/jquery.git
$ git checkout 1.10.2
which is what the jQuery website instructs to do: http://jquery.com/download/
This repository is mirrorred at https://kallithea-scm.org/repos/mirror/jquery/ .
Include the minified version of jQuery 1.10.2 instead of 1.10.1. The 1.10.2
files were download via these commands:
$ wget -N http://code.jquery.com/jquery-1.10.2.min.js
$ wget -N http://code.jquery.com/jquery-1.10.2.min.map
Meanwhile, since the Javascript code is covered by GPLv3, we should always
provide an up-to-date version of the source code. I have included it
here by creating the directory jquery-src. I extracted the correct version
of the source with the following commands:
$ git clone git://github.com/jquery/jquery.git
$ git checkout 1.10.2
which is what the jQuery website instructs to do: http://jquery.com/download/
This repository is mirrorred at https://kallithea-scm.org/repos/mirror/jquery/ .
1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 1e757ac98988 1e757ac98988 1e757ac98988 ffd45b185016 ffd45b185016 1e757ac98988 1e757ac98988 1e757ac98988 b4f401524060 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 d5e42c00f3c1 1e757ac98988 1e757ac98988 ffd45b185016 1e757ac98988 f91d3f9b7230 1e757ac98988 1e757ac98988 ffd45b185016 80d837028c40 1e757ac98988 80d837028c40 80d837028c40 80d837028c40 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 80d837028c40 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 80d837028c40 80d837028c40 1e757ac98988 | ## -*- coding: utf-8 -*-
<%inherit file="/base/base.html"/>
<%def name="title()">
${_('Users administration')}
%if c.rhodecode_name:
· ${c.rhodecode_name}
%endif
</%def>
<%def name="breadcrumbs_links()">
<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')}
</%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>
<a href="${h.url('new_user')}" class="btn btn-small btn-success"><i class="icon-plus"></i> ${_(u'Add User')}</a>
</li>
</ul>
</div>
<!-- end box / title -->
<div class="table-grid table yui-skin-sam" id="datatable_list_wrap"></div>
<div id="user-paginator" style="padding: 0px 0px 0px 20px"></div>
</div>
<script>
var data = ${c.data|n};
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"},
];
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});
</script>
</%def>
|