From eccf2fe5be61e5eb3db8b1608a3213aa8948c789 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Fri, 6 Mar 2015 17:29:12 -0800 Subject: [PATCH 1/3] Make theme closer to notebook. improvement of admin page split edit/delete in their own column --- share/jupyter/hub/static/less/page.less | 27 +++++++++++++++++++++---- share/jupyter/hub/templates/admin.html | 14 ++++++++----- share/jupyter/hub/templates/page.html | 17 ++++++++++++++-- 3 files changed, 47 insertions(+), 11 deletions(-) diff --git a/share/jupyter/hub/static/less/page.less b/share/jupyter/hub/static/less/page.less index 8152368b..f0753b98 100644 --- a/share/jupyter/hub/static/less/page.less +++ b/share/jupyter/hub/static/less/page.less @@ -1,13 +1,32 @@ .jpy-logo { - height: 40px; - margin: 8px; + height: 35px; + margin: 2px; } -div#header { - border-bottom: 1px solid #ccc; +#header { + border-bottom: 1px solid #e7e7e7; + height: 40px; + + +} +.navbar { + min-height:20px; } .hidden { display: none; } + +.dropdown.navbar-btn{ + padding:0 5px 0 0; +} + +#login_widget{ + + & .navbar-btn.btn-sm { + margin-top: 5px; + margin-bottom: 5px; + } + +} diff --git a/share/jupyter/hub/templates/admin.html b/share/jupyter/hub/templates/admin.html index 742bf8cf..90a8b027 100644 --- a/share/jupyter/hub/templates/admin.html +++ b/share/jupyter/hub/templates/admin.html @@ -31,9 +31,9 @@ - + Add User - Shutdown Hub + Shutdown Hub {% for u in users %} @@ -42,15 +42,19 @@ {{u.name}} {% if u.admin %}admin{% endif %} {{u.last_activity.isoformat() + 'Z'}} - + stop server + start server + + {% if admin_access %} access server {% endif %} - start server - + edit + + {% if u.name != user.name %} delete {% endif %} diff --git a/share/jupyter/hub/templates/page.html b/share/jupyter/hub/templates/page.html index 49255338..a9b60c94 100644 --- a/share/jupyter/hub/templates/page.html +++ b/share/jupyter/hub/templates/page.html @@ -54,6 +54,7 @@ }, } }); + require(["bootstrap"])