diff --git a/share/jupyter/hub/static/js/admin.js b/share/jupyter/hub/static/js/admin.js index 78ac8ef2..5ff1d978 100644 --- a/share/jupyter/hub/static/js/admin.js +++ b/share/jupyter/hub/static/js/admin.js @@ -42,6 +42,9 @@ require(["jquery", "bootstrap", "moment", "jhapi", "utils"], function ($, bs, mo $("th").map(function (i, th) { th = $(th); var col = th.data('sort'); + if (!col || col.length == 0) { + return; + } var order = th.find('i').hasClass('fa-sort-desc') ? 'asc':'desc'; th.find('a').click( function () { diff --git a/share/jupyter/hub/templates/admin.html b/share/jupyter/hub/templates/admin.html index 5fdd50ea..7e072f01 100644 --- a/share/jupyter/hub/templates/admin.html +++ b/share/jupyter/hub/templates/admin.html @@ -1,15 +1,17 @@ {% extends "page.html" %} -{% macro th(key, label, order, colspan) %} +{% macro th(label, key='', colspan=1) %}
{{u.name}} | {% if u.admin %}admin{% endif %} | {{u.last_activity.isoformat() + 'Z'}} | @@ -49,6 +54,7 @@ delete {% endif %} + {% endblock user_row %}