Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/layout.html
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | <div class="wrapper"> | ||||
<span id="swh-current-status-description">Operational</span> | <span id="swh-current-status-description">Operational</span> | ||||
<i class="swh-current-status-indicator green"></i> | <i class="swh-current-status-indicator green"></i> | ||||
</a> | </a> | ||||
{% url 'logout' as logout_url %} | {% url 'logout' as logout_url %} | ||||
{% if user.is_authenticated %} | {% if user.is_authenticated %} | ||||
Logged in as | Logged in as | ||||
{% if 'OIDC' in user.backend %} | {% if 'OIDC' in user.backend %} | ||||
<a href="{% url 'oidc-profile' %}"><strong>{{ user.username }}</strong></a>, | <a href="{% url 'oidc-profile' %}"><strong>{{ user.username }}</strong></a>, | ||||
<a href="{% url 'oidc-logout' %}">logout</a> | <a href="{% url 'oidc-logout' %}?next_path={% url 'logout' %}?remote_user=1">logout</a> | ||||
{% else %} | {% else %} | ||||
<strong>{{ user.username }}</strong>, | <strong>{{ user.username }}</strong>, | ||||
<a href="{{ logout_url }}">logout</a> | <a href="{{ logout_url }}">logout</a> | ||||
{% endif %} | {% endif %} | ||||
{% elif oidc_enabled %} | {% elif oidc_enabled %} | ||||
{% if request.path != logout_url %} | {% if request.path != logout_url %} | ||||
<a href="{% url 'oidc-login' %}?next_path={{ request.build_absolute_uri }}">login</a> | <a href="{% url 'oidc-login' %}?next_path={{ request.build_absolute_uri }}">login</a> | ||||
{% else %} | {% else %} | ||||
▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines |