canaille-globuzma/tests/app/fixtures/themes/test/base.html

106 lines
5.1 KiB
HTML
Raw Normal View History

{% import 'macro/flask.html' as flask %}
2020-08-17 09:53:30 +00:00
<!doctype html>
<html lang="fr">
2021-12-20 22:57:27 +00:00
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
2020-10-21 08:52:18 +00:00
2021-12-20 22:57:27 +00:00
<title>{% block title %}{{ website_name|default("Canaille") }} {% trans %}authorization interface{% endtrans %}{% endblock %}</title>
2020-10-21 08:52:18 +00:00
<link href="{{ url_for("static", filename="fomanticui/semantic.min.css") }}" rel="stylesheet">
<link href="{{ url_for("static", filename="fonts/lato.css") }}" rel="stylesheet">
<link href="{{ url_for("static", filename="css/base.css") }}" rel="stylesheet">
2021-12-20 22:57:27 +00:00
{% if logo_url %}<link rel="icon" href="{{ favicon_url }}">{% endif %}
{% block style %}{% endblock %}
</head>
2020-08-17 09:53:30 +00:00
2021-12-20 22:57:27 +00:00
<body>
{% block menu %}
{% if user and menu %}
<nav class="ui stackable labeled icon menu container">
{% if logo_url %}
<div class="header item">
<a href="/" class="logo">
<img class="ui image" src="{{ logo_url }}" alt="{{ website_name }}" />
</a>
</div>
{% endif %}
<a class="item {% if menuitem == "profile" %}active{% endif %}"
href="{{ url_for('core.account.profile_edition', edited_user=user) }}">
2021-12-20 22:57:27 +00:00
<i class="id card icon"></i>
{% trans %}My profile{% endtrans %}
</a>
{% if has_oidc and user.can_use_oidc %}
<a class="item {% if menuitem == "consents" %}active{% endif %}"
href="{{ url_for('consents.consents') }}">
<i class="handshake icon"></i>
{% trans %}My consents{% endtrans %}
</a>
{% endif %}
2021-12-20 22:57:27 +00:00
{% if user.can_manage_users %}
<a class="item {% if menuitem == "users" %}active{% endif %}"
href="{{ url_for('core.account.users') }}">
2021-12-20 22:57:27 +00:00
<i class="users icon"></i>
{% trans %}Users{% endtrans %}
</a>
{% endif %}
{% if user.can_manage_groups %}
<a class="item {% if menuitem == "groups" %}active{% endif %}"
href="{{ url_for('core.groups.groups') }}">
2021-12-20 22:57:27 +00:00
<i class="users cog icon"></i>
{% trans %}Groups{% endtrans %}
</a>
{% endif %}
{% if has_oidc and user.can_manage_oidc %}
2021-12-20 22:57:27 +00:00
<div class="ui dropdown item {% if menuitem == "admin" %}active{% endif %}">
<i class="settings icon"></i>
Admin
<div class="menu">
2022-01-11 18:49:06 +00:00
<a class="item" href="{{ url_for('oidc.clients.index') }}">
2021-12-20 22:57:27 +00:00
<i class="plug icon"></i>
{% trans %}Clients{% endtrans %}
</a>
2022-01-11 18:49:06 +00:00
<a class="item" href="{{ url_for('oidc.tokens.index') }}">
2021-12-20 22:57:27 +00:00
<i class="key icon"></i>
{% trans %}Tokens{% endtrans %}
</a>
2022-01-11 18:49:06 +00:00
<a class="item" href="{{ url_for('oidc.authorizations.index') }}">
2021-12-20 22:57:27 +00:00
<i class="user secret icon"></i>
{% trans %}Codes{% endtrans %}
</a>
<a class="item" href="">
<i class="handshake icon"></i>
{% trans %}Consents{% endtrans %}
</a>
</div>
</div>
{% endif %}
<a class="item" href="{{ url_for('core.auth.logout') }}">
2021-12-20 22:57:27 +00:00
<i class="sign out alternate icon"></i>
{% trans %}Log out{% endtrans %}
</a>
</nav>
2020-11-01 10:33:56 +00:00
{% endif %}
2021-12-20 22:57:27 +00:00
{% endblock %}
2020-10-21 09:30:26 +00:00
2021-12-20 22:57:27 +00:00
<div class="ui container">
<div class="content">
{{ flask.messages() }}
{% block content %}{% endblock %}
</div>
2020-08-17 09:53:30 +00:00
</div>
2020-11-13 09:45:01 +00:00
2021-12-20 22:57:27 +00:00
<footer>
<a href="{{ url_for('core.account.about') }}">{{ _("About canaille") }}</a>
2021-12-20 22:57:27 +00:00
</footer>
<script src="{{ url_for("static", filename="jquery/jquery.min.js") }}" defer></script>
<script src="{{ url_for("static", filename="fomanticui/semantic.min.js") }}" defer></script>
<script src="{{ url_for("static", filename="js/base.js") }}" defer></script>
2021-12-20 22:57:27 +00:00
{% block script %}{% endblock %}
2021-12-20 22:57:27 +00:00
TEST_THEME
</body>
2020-08-17 09:53:30 +00:00
</html>