Skip to content

Commit

Permalink
Merge pull request #11 from yuvipanda/fix
Browse files Browse the repository at this point in the history
Show interface selector on home page
  • Loading branch information
yuvipanda authored Mar 11, 2022
2 parents c095fb2 + 61b79ac commit 25033a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
1 change: 1 addition & 0 deletions jupyterhub_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

c.JupyterHub.template_vars = {
'custom': {
"interface_selector": True,
'org': {
'name': 'University of Foo',
'logo_url': 'https://jupyter.org/assets/nav_logo.svg',
Expand Down
17 changes: 7 additions & 10 deletions templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@
</div>
</div>
<div class="login-container text-center">
{% if next %}
<a role="button" class='btn btn-jupyter btn-lg' href='{{authenticator_login_url}}'>
Log in to continue
</a>
{% else %}
{% if "interface_selector" in custom and custom["interface_selector"] and (not next or next == "%2Fhub%2F") %}
<form class="form-inline">
<div class="form-group interface-selector">
<label>After logging in, open: </label>
Expand All @@ -48,11 +44,12 @@
</label>
</div>
</form>
<a role="button"
id="login-button"
class='btn btn-jupyter btn-lg'
href='{{authenticator_login_url}}'>
Log in to start
<a role="button" id="login-button" class='btn btn-jupyter btn-lg' href='{{authenticator_login_url}}'>
Log in to start
</a>
{% else %}
<a role="button" class='btn btn-jupyter btn-lg' href='{{authenticator_login_url}}'>
Log in to continue
</a>
{% endif %}
</div>
Expand Down

0 comments on commit 25033a2

Please sign in to comment.