##// END OF EJS Templates
users: add sorting by last activity to the new users grid.
marcink -
r1547:ed2ccabe default
parent child Browse files
Show More
@@ -68,7 +68,6 b' class AdminUsersView(BaseAppView):'
68 order_by = {
68 order_by = {
69 'first_name': 'name',
69 'first_name': 'name',
70 'last_name': 'lastname',
70 'last_name': 'lastname',
71 'last_activity': ''
72 }.get(order_by) or order_by
71 }.get(order_by) or order_by
73
72
74 search_q = request.GET.get('search[value]')
73 search_q = request.GET.get('search[value]')
@@ -68,7 +68,7 b''
68 "sort": "last_name"}, title: "${_('Last Name')}", className: "td-user" },
68 "sort": "last_name"}, title: "${_('Last Name')}", className: "td-user" },
69 { data: {"_": "last_activity",
69 { data: {"_": "last_activity",
70 "sort": "last_activity",
70 "sort": "last_activity",
71 "type": Number}, title: "${_('Last activity')}", className: "td-time", orderable: false },
71 "type": Number}, title: "${_('Last activity')}", className: "td-time" },
72 { data: {"_": "active",
72 { data: {"_": "active",
73 "sort": "active"}, title: "${_('Active')}", className: "td-active" },
73 "sort": "active"}, title: "${_('Active')}", className: "td-active" },
74 { data: {"_": "admin",
74 { data: {"_": "admin",
General Comments 0
You need to be logged in to leave comments. Login now