users: add sorting by last activity to the new users grid.
This commit is contained in:
parent
a487205ee6
commit
800d32ba70
2 changed files with 1 additions and 2 deletions
|
|
@ -68,7 +68,6 @@ class AdminUsersView(BaseAppView):
|
|||
order_by = {
|
||||
'first_name': 'name',
|
||||
'last_name': 'lastname',
|
||||
'last_activity': ''
|
||||
}.get(order_by) or order_by
|
||||
|
||||
search_q = request.GET.get('search[value]')
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ $(document).ready(function() {
|
|||
"sort": "last_name"}, title: "${_('Last Name')}", className: "td-user" },
|
||||
{ data: {"_": "last_activity",
|
||||
"sort": "last_activity",
|
||||
"type": Number}, title: "${_('Last activity')}", className: "td-time", orderable: false },
|
||||
"type": Number}, title: "${_('Last activity')}", className: "td-time" },
|
||||
{ data: {"_": "active",
|
||||
"sort": "active"}, title: "${_('Active')}", className: "td-active" },
|
||||
{ data: {"_": "admin",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue