<!doctype html>
<html lang="cs">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>{% block title %}Proxmox Provisioner{% endblock %}</title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body class="bg-body-tertiary">
  <nav class="navbar navbar-expand-lg bg-dark navbar-dark border-bottom border-secondary-subtle">
    <div class="container">
      <span class="navbar-brand">Proxmox Provisioner</span>
      {% if session.get('authenticated') %}
      <div class="d-flex align-items-center gap-3 text-white-50 small">
        <span>Přihlášen: {{ session.get('username') }}</span>
        <a class="btn btn-outline-light btn-sm" href="{{ url_for('logout') }}">Odhlásit</a>
      </div>
      {% endif %}
    </div>
  </nav>
  <main class="container py-4">
    {% block content %}{% endblock %}
  </main>
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
  {% block scripts %}{% endblock %}
</body>
</html>
