Skip to content

Commit

Permalink
Merge pull request #220 from Mistobaan/master
Browse files Browse the repository at this point in the history
add basic login.html template
  • Loading branch information
Zsailer committed May 5, 2020
2 parents ed1ca52 + d5aadf6 commit 6d909ca
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
17 changes: 17 additions & 0 deletions jupyter_server/templates/login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{% extends "page.html" %}

{% block site %}
{% if message %}
{% for key in message %}
<div>
{{message[key]}}
</div>
{% endfor %}
{% endif %}
<form action="{{base_url}}login?next={{next}}" method="post">
{{ xsrf_form_html() | safe }}
<label for="password_input"><strong>{% trans %}Password:{% endtrans %}</strong></label>
<input type="password" name="password" id="password_input">
<button type="submit" id="login_submit">{% trans %}Log in{% endtrans %}</button>
</form>
{% endblock site %}
13 changes: 13 additions & 0 deletions jupyter_server/templates/logout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{% extends "page.html" %}

{% block site %}
{% if message %}
{% for key in message %}
<div>
{{message[key]}}
</div>
{% endfor %}
{% endif %}

{% trans %}Proceed to the <a href="{{base_url}}login">login page{% endtrans %}</a>.
{% endblock %}

0 comments on commit 6d909ca

Please sign in to comment.