This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
lesechos/theme-authentic2/templates/authentic2/logout.html

46 lines
1.0 KiB
HTML

{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block title %}
{% trans "Logout" %}
{% endblock %}
{% block user %}
{% endblock %}
{% block bodyargs %}
onload="window.iframe_count -= 1"
{% endblock %}
{% comment %}Initialize iframe countdown {% endcomment %}
{% block extra_scripts %}
<script>
window.iframe_count = 1;
</script>
{% endblock %}
{% block content %}
<h1>{% trans message %}</h1>
<ul class="logout-list">
{% for fragment in logout_list %}
{{ fragment|safe }}
{% endfor %}
</ul>
<script>
window.iframe_count += document.getElementsByTagName("iframe").length;
var refresh_launched = 0;
setInterval(function () {
if (iframe_count == 0) {
if (refresh_launched == 0) {
refresh_launched = 1;
setTimeout(function () { window.location = '{{ next_url }}' }, 300);
}
}
}, {{ redir_timeout }})
</script>
<div id="continue-link">
<a href="{{ next_url }}">{% trans "Continue logout" %}</a>
</div>
{% endblock %}