Commit Graph

59 Commits

Author SHA1 Message Date
Min RK
28f5f33a76 add bootstrap form-control to spawner form inputs 2015-12-30 13:55:38 +01:00
Min RK
ba634354dd Add Spawner form
If Spawner.options_form is specified, a form providing input controls is shown to the user prior to launch.

Spawners access the result via the `self.user_options` dict.

The default spawners offer no form.
2015-12-30 13:55:01 +01:00
Min RK
6f128758db move non-persisted User objects (spawner-related) off of orm.User
adds higher level User object, which handles spawning.
This object has running, spawner, etc. attributes.
2015-11-30 14:05:00 +01:00
Min RK
da647397ac create multiple users in admin panel
usernames separated by lines
2015-05-06 14:03:19 -07:00
Min RK
7c5e89faa6 use jupyter logo 2015-04-06 10:56:36 -07:00
Min RK
ab0010fa32 finish removing logout page 2015-03-31 13:56:49 -07:00
Min RK
1bc8d50261 add "Login with..." button
for custom authenticators that use external services (e.g. OAuth)
2015-03-31 13:56:49 -07:00
Min RK
24fd843c3c render login form at root
- redirect to server, if running (hub home, otherwise)
2015-03-31 13:56:49 -07:00
Min RK
cffdf89327 remove logout page
redirect to landing page, instead
2015-03-31 13:56:49 -07:00
Min RK
da1fe54aee better error messages for spawn failure
Server started, but never became accessible:

> Failed to reach your server.
> Please try again later.
> Contact admin if the issue persists.

Server failed to start (errors in Spawner):

> Failed to start your server.
> Please contact admin.
2015-03-13 12:12:36 -07:00
Matthias Bussonnier
301560b6f8 use bootstrap variables 2015-03-08 18:06:43 -07:00
Matthias Bussonnier
5bd649829a remove dropdown 2015-03-08 17:44:46 -07:00
Matthias Bussonnier
eccf2fe5be Make theme closer to notebook.
improvement of admin page split
edit/delete in their own column
2015-03-08 17:39:46 -07:00
Min RK
e82683d14f remove 'workaround' that didn't workaround anything 2015-03-08 17:25:53 -07:00
Min RK
2455680ab8 cleanup bizarre login html 2015-03-08 17:21:04 -07:00
Min RK
827f694589 simplify login css
use mixins, remove lots of unnecessary CSS
2015-03-08 17:21:04 -07:00
Matthias Bussonnier
c0b67770e4 make color and gradient more logo-like 2015-03-06 12:25:07 -08:00
Matthias Bussonnier
791e527695 do not change brand primary, plus rework login form 2015-03-06 12:06:45 -08:00
Matthias Bussonnier
a6b79780b3 compute gradient 2015-03-03 17:14:58 -08:00
Matthias Bussonnier
25bcb6ede4 fix bootstrap bug 2015-03-03 17:09:30 -08:00
Bussonnier Matthias
839bd79bbd Implementation of login page design 2015-03-03 16:53:35 -08:00
Min RK
d089f7433d add Shutdown Hub button to Admin page
with dialog and checkboxes for cleaning up servers and/or proxy
2015-02-28 12:20:45 -08:00
Min RK
b5eda9d785 add User.running
as the one true way to check whether a user is running or not

User.running will be True if spawn or stop is pending.
2015-02-06 15:42:57 -08:00
Min RK
df8925a232 revert logo URL change
it just increased the number of redirects
2015-02-02 11:09:51 -08:00
Andrii Magalich
1a26351a8e {{base_url}} points to the user's home here, use {{prefix}} instead 2015-02-02 19:08:30 +01:00
Andrii Magalich
73ec94d3e0 Add "Hub" button to the header
Currently the Jupyter logo link brings us to the users' dashboard and there is no way to get to the initial screen (containing "Stop my server"/"My server"/"Admin" buttons)
2015-02-02 13:59:53 +01:00
Min RK
3acf8dd5b9 allow adding unsorted columns to admin via template blocks 2015-01-31 16:57:58 -08:00
Min RK
056cd0c246 show dialog when ajax requests fail 2015-01-31 16:57:57 -08:00
Min RK
98daa5409d don't reload page on server start/stop 2015-01-31 16:57:57 -08:00
Min RK
b99cb61a32 add user, running count to admin page 2015-01-31 16:57:57 -08:00
Min RK
425c870f47 allow sorting admin columns 2015-01-31 16:49:56 -08:00
Min RK
7c7aacef68 move add-user to top 2015-01-31 16:49:08 -08:00
Min RK
f2b818e685 Merge pull request #132 from minrk/admin-access
add JupyterHub.admin_access
2015-01-31 16:48:32 -08:00
Min RK
7753428dd7 cache control on static files
same principle as used in IPython,
slightly different implementation.
2015-01-28 14:21:43 -08:00
Min RK
6b9f73ba1f add JupyterHub.admin_access
optionally allow admin users to login to user servers by visiting a special admin-only URL that sets the relevant cookie

- disabled by default
- an 'access server' button is added to the admin panel, which sets the necessary cookie to log in to the user server
2015-01-27 17:04:30 -08:00
Min RK
d125abbffe move static files to share/jupyter/hub
avoids conflict with other jupyter projects
2014-12-23 20:31:59 -08:00
Min RK
53880f52b8 allow high latency spawners
such as VMs, batch and cloud services, etc. which can take minutes to start.

- Spawner.start_timeout sets a limit for true failure,
  at which point spawner should be considered dead.
- Handler.spawn_single_user only waits up to 10 seconds
  before returning. It can now return with a spawner still pending.
- Record User.spawn_pending state, and render 'pending' page
  while server is starting but not started.
2014-12-22 13:27:23 -08:00
Min RK
5dfe378c56 remove incorrect link to favicon
the favicon is already in the correct default location
2014-12-17 11:01:21 -08:00
Min RK
73d6cd1888 add favicon
designed by Adrienne Wantulok
2014-11-24 16:49:19 -08:00
Min RK
1c8b1c0cd3 add proper jupyterhub logo 2014-11-18 11:14:16 -08:00
Min RK
65b7ce289e Merge pull request #78 from dsblank/patch-2
Same typo
2014-10-25 12:31:19 -07:00
Doug Blank
e2170ee922 Same typo
Should be a closing div tag.
2014-10-25 08:19:16 -04:00
Doug Blank
481f934eff Typo on div tag
I believe that this div should be a ending div tag.
2014-10-25 08:16:18 -04:00
MinRK
878535cfc4 use login_url on logout page 2014-09-24 10:47:44 -07:00
MinRK
0577e10276 more hooks for authenticators
Allow authenticators to:

- register custom handlers
- change login and logout URLs
- replace the entire login form

This appears to be enough to get oauth working.
2014-09-22 22:17:00 -07:00
MinRK
bb9ca0e040 store last_activity in the database
fetch it periodically (10 minutes) from the proxy
and display it on the admin page
2014-09-22 17:25:10 -07:00
MinRK
1f3fe9c84d simplify temporary login css 2014-09-22 12:19:04 -07:00
Matthias Bussonnier
e3946831d9 improve login page styling
fixup css
2014-09-22 08:17:58 +02:00
MinRK
c8832008e8 don't render delete-user button for self 2014-09-15 01:54:55 -07:00
MinRK
48eeee0946 add admin.js 2014-09-15 01:45:12 -07:00