Merge pull request #2666 from takluyver/i2094

Expose URL with auth token in notebook UI
This commit is contained in:
Min RK 2017-07-20 15:42:48 +02:00 committed by GitHub
commit c4a5dc04bf

View File

@ -118,7 +118,10 @@ dir="ltr">
<div id="header">
<div id="header-container" class="container">
<div id="ipython_notebook" class="nav navbar-brand pull-left"><a href="{{default_url}}" title='{% trans %}dashboard{% endtrans %}'>{% block logo %}<img src='{{static_url("base/images/logo.png") }}' alt='Jupyter Notebook'/>{% endblock %}</a></div>
<div id="ipython_notebook" class="nav navbar-brand pull-left"><a href="{{default_url}}
{%- if logged_in and token -%}?token={{token}}{%- endif -%}" title='{% trans %}dashboard{% endtrans %}'>
{% block logo %}<img src='{{static_url("base/images/logo.png") }}' alt='Jupyter Notebook'/>{% endblock %}
</a></div>
{% block headercontainer %}
{% endblock %}