Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/logout.html
Show All 10 Lines | |||||
{% block title %}Logged out – Software Heritage archive {% endblock %} | {% block title %}Logged out – Software Heritage archive {% endblock %} | ||||
{% block navbar-content %} | {% block navbar-content %} | ||||
<h4>Logged out</h4> | <h4>Logged out</h4> | ||||
{% endblock %} | {% endblock %} | ||||
{% block content %} | {% block content %} | ||||
{% if 'next_path' in request.GET %} | |||||
<p>Your authenticated session expired so you have been automatically logged out.</p> | |||||
{% else %} | |||||
<p>You have been successfully logged out.</p> | <p>You have been successfully logged out.</p> | ||||
{% endif %} | |||||
<p> | <p> | ||||
{% if oidc_enabled and 'remote_user' in request.GET %} | {% if oidc_enabled and 'remote_user' in request.GET %} | ||||
{% if 'next_path' in request.GET %} | |||||
<a href="{% url 'oidc-login' %}?next_path={{ request.GET.next_path }}"> | |||||
{% else %} | |||||
<a href="{% url 'oidc-login' %}"> | <a href="{% url 'oidc-login' %}"> | ||||
{% endif %} | |||||
{% else %} | {% else %} | ||||
<a href="{% url 'login' %}"> | <a href="{% url 'login' %}"> | ||||
{% endif %} | {% endif %} | ||||
Log in</a> again.</p> | Log in</a> again ?</p> | ||||
{% if 'next_path' in request.GET %} | |||||
<p> | |||||
Or go back to | |||||
<a href="{{ request.GET.next_path }}"> | |||||
previous page</a>. | |||||
</p> | |||||
{% endif %} | |||||
{% endblock %} | {% endblock %} |