File: logout.html

package info (click to toggle)
jupyter-notebook 6.4.13-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,860 kB
  • sloc: javascript: 20,765; python: 15,658; makefile: 255; sh: 160
file content (50 lines) | stat: -rw-r--r-- 1,179 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{% extends "page.html" %}

{# This template is rendered in response to an authenticated request, so the
   user is technically logged in. But when the user sees it, the cookie is
   cleared by the Javascript, so we should render this as if the user was logged
   out, without e.g. authentication tokens.
#}
{% set logged_in = False %}

{% block stylesheet %}
{{super()}}
<link rel="stylesheet" href="{{ static_url("auth/css/override.css") }}" type="text/css" />
{% endblock %}

{% block login_widget %}
{% endblock %}

{% block site %}

<div id="ipython-main-app" class="container">

    {% if message %}
      {% for key in message %}
        <div class="message {{key}}">
           {{message[key]}}
        </div>
      {% endfor %}
    {% endif %}

    {% if not login_available %}
    {% trans %}Proceed to the <a href="{{base_url}}">dashboard{% endtrans %}</a>.
    {% else %}
    {% trans %}Proceed to the <a href="{{base_url}}login">login page{% endtrans %}</a>.
    {% endif %}


<div/>

{% endblock %}

{% block script %}
{{super()}}

<script type="text/javascript">
  require(["auth/js/main"], function (auth) {
    auth.logout_main();
  });
</script>

{% endblock %}