2026-07-21 16:45:13 +02:00

42 lines
1.3 KiB
HTML

<!doctype html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ settings.app_title }}</title>
<link rel="stylesheet" href="{{ url_for('static', path='/style.css') }}">
</head>
<body>
{% if user %}
<header class="topbar">
<div>
<a class="brand" href="/">MESAVAULT</a>
<span class="subtitle">Revisión de gobernanza</span>
</div>
<nav>
<a href="/">Pendientes</a>
{% if 'TECHNICAL' in user.roles or 'ADMIN' in user.roles %}
<a href="/approvals">Aprobación técnica</a>
{% endif %}
{% if 'PRODUCTION' in user.roles or 'ADMIN' in user.roles %}
<a href="/clarifications">Aclaraciones</a>
{% endif %}
<a href="/history">Historial</a>
<span class="user">{{ user.display_name }}</span>
{% if not settings.write_enabled %}
<span class="status">Solo lectura</span>
{% endif %}
<form class="inline" method="post" action="/logout">
<input type="hidden" name="csrf_token" value="{{ user.csrf_token }}">
<button class="link-button" type="submit">Salir</button>
</form>
</nav>
</header>
{% endif %}
<main class="container">
{% block content %}{% endblock %}
</main>
</body>
</html>