redactor
This commit is contained in:
45
templates/base.html
Normal file
45
templates/base.html
Normal file
@@ -0,0 +1,45 @@
|
||||
{% set active_page = active_page|default('') %}
|
||||
<!doctype html>
|
||||
<html lang="pl" data-bs-theme="dark">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{% block title %}HAProxy Configurator{% endblock %}</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}">
|
||||
{% block head %}{% endblock %}
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
||||
</head>
|
||||
<body class="bg-body">
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark border-bottom border-secondary sticky-top">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand fw-semibold" href="{{ url_for('main.index') }}">HAProxy Configurator</a>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarsExample" aria-controls="navbarsExample" aria-expanded="false" aria-label="Przełącz nawigację">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarsExample">
|
||||
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
||||
<li class="nav-item"><a class="nav-link {% if active_page=='home' %}active{% endif %}" href="{{ url_for('main.home') }}">Pulpit</a></li>
|
||||
<li class="nav-item"><a class="nav-link {% if active_page=='index' %}active{% endif %}" href="{{ url_for('main.index') }}">Konfiguracja</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="{{ url_for('display_haproxy_stats') }}">Statystyki</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="{{ url_for('display_logs') }}">Logi</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="{{ url_for('edit.edit_haproxy_config') }}">Edytor</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<main class="container py-4">
|
||||
{% with messages = get_flashed_messages() %}{% if messages %}<div id="_flash_msgs" data-msgs="{{ messages|tojson }}"></div>{% endif %}{% endwith %}
|
||||
|
||||
{% block breadcrumb %}{% endblock %}
|
||||
<div id="toast-stack" class="toast-container position-fixed top-0 end-0 p-3"></div>
|
||||
{% block content %}{% endblock %}
|
||||
|
||||
</main>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
|
||||
<script src="{{ url_for('static', filename='js/main.js') }}"></script>
|
||||
{% block scripts %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user