From 7c7f065547fd0e33a11d47dcf08e92ecf42ccb01 Mon Sep 17 00:00:00 2001 From: Min RK Date: Tue, 13 Dec 2016 13:07:28 +0100 Subject: [PATCH] include token info on login page --- notebook/templates/login.html | 40 ++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/notebook/templates/login.html b/notebook/templates/login.html index c3b2bef72..1cf0a3fad 100644 --- a/notebook/templates/login.html +++ b/notebook/templates/login.html @@ -20,7 +20,7 @@ - {% elif login_token_available %} -
-

- This notebook server has no password set, - but token-authentication is enabled. - - You need to open the notebook server with its first-time login token in the URL, - or enable a password in order to gain access. - The command: -

-
jupyter notebook list
-

- will show you the URLs of running servers with their tokens, - which you can copy and paste into your browser. -

-
{% else %}

No login available, you shouldn't be seeing this page.

{% endif %} @@ -58,6 +42,28 @@ {% endfor %} {% endif %} + {% block token_message %} +
+

+ If this notebook server has no password set, token authentication is enabled. + + You need to open the notebook server with its first-time login token in the URL, + or enable a password in order to gain access. + The command: +

+
jupyter notebook list
+

+ will show you the URLs of running servers with their tokens, + which you can copy and paste into your browser. For example: +

+
Currently running servers:
+http://localhost:8888/?token=c8de56fa... :: /Users/you/notebooks
+
+

+ Or you can paste just the token value into the password field on this page. +

+
+ {% endblock token_message %} {% endblock %}