ldap-frontend/ldap_frontend/templates/layout/default.html

56 lines
2.8 KiB
HTML
Raw Normal View History

2021-12-21 07:30:36 +00:00
<!DOCTYPE html>
<html>
<head>
<title>{% block title %}LDAP{% endblock %} | {{ APP_CONFIG["title"] }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
2021-12-21 09:45:41 +00:00
<link href="{{ url_for("static", filename="bootstrap.min.css") }}" rel="stylesheet">
2021-12-21 11:24:18 +00:00
<link href="{{ url_for("static", filename="rainbow.svg") }}" rel="icon" type="image/svg+xml" >
<link href="{{ url_for("static", filename="rainbow.png") }}" rel="alternate icon" type="image/png" >
2021-12-21 07:30:36 +00:00
</head>
<body>
{% if session.is_logged_in %}
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<span class="navbar-brand">{{ APP_CONFIG["title"] }}</span>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
2021-12-23 08:14:27 +00:00
<a class="nav-link" href="{{ url_for("selfservice") }}">{% trans %}self service{% endtrans %}</a>
2021-12-21 07:30:36 +00:00
</li>
<li class="nav-item">
2021-12-23 08:14:27 +00:00
<a class="nav-link" href="{{ url_for("groups") }}">{% trans %}groups{% endtrans %}</a>
2021-12-21 07:30:36 +00:00
</li>
2021-12-22 09:01:01 +00:00
{% if APP_CONFIG.external_links %}
<li class="nav-item dropdown">
2021-12-23 08:14:27 +00:00
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">{% trans %}Other Sites{% endtrans %}</a>
2021-12-22 09:01:01 +00:00
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
{% for text, link in APP_CONFIG.external_links.items()|sort %}
<a class="dropdown-item" href="{{ link }}">{{ text }}</a>
{% endfor %}
</div>
</li>
{% endif %}
2021-12-21 07:30:36 +00:00
</ul>
2021-12-23 08:14:27 +00:00
<span class="navbar-text navbar-right">{% trans uid=CURRENT_USER["uid"] %}Signed in as <em>{{ uid }}</em>{% endtrans %} - <a href="{{ url_for("logout") }}">{% trans %}logout{% endtrans %}</a></span>
2021-12-21 07:30:36 +00:00
</div>
</div>
</nav>
{% endif %}
<div class="container-md p-3">
{% for message in get_flashed_messages() %}
<div class="alert alert-primary" role="alert">
{{ message }}
</div>
{% endfor %}
{% block content %}
{% endblock %}
</div>
2021-12-22 09:01:01 +00:00
<script src="{{ url_for("static", filename="bootstrap.bundle.min.js") }}"></script>
2021-12-21 07:30:36 +00:00
</body>
</html>