Skip to content

Commit d5aadf6

Browse files
committed
add missing login and logout template pages
1 parent 4f2d91d commit d5aadf6

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

jupyter_server/templates/login.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{% extends "page.html" %}
2+
3+
{% block site %}
4+
{% if message %}
5+
{% for key in message %}
6+
<div>
7+
{{message[key]}}
8+
</div>
9+
{% endfor %}
10+
{% endif %}
11+
<form action="{{base_url}}login?next={{next}}" method="post">
12+
{{ xsrf_form_html() | safe }}
13+
<label for="password_input"><strong>{% trans %}Password:{% endtrans %}</strong></label>
14+
<input type="password" name="password" id="password_input">
15+
<button type="submit" id="login_submit">{% trans %}Log in{% endtrans %}</button>
16+
</form>
17+
{% endblock site %}

jupyter_server/templates/logout.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{% extends "page.html" %}
2+
3+
{% block site %}
4+
{% if message %}
5+
{% for key in message %}
6+
<div>
7+
{{message[key]}}
8+
</div>
9+
{% endfor %}
10+
{% endif %}
11+
12+
{% trans %}Proceed to the <a href="{{base_url}}login">login page{% endtrans %}</a>.
13+
{% endblock %}

0 commit comments

Comments
 (0)