rewrite
This commit is contained in:
@@ -40,11 +40,13 @@
|
|||||||
<span>HAProxy Manager</span>
|
<span>HAProxy Manager</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|
||||||
<!-- Toggle Button (Mobile) -->
|
<!-- Toggle Button (Mobile) -->
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|
||||||
<!-- Navigation Menu -->
|
<!-- Navigation Menu -->
|
||||||
<div class="collapse navbar-collapse" id="navbarNav">
|
<div class="collapse navbar-collapse" id="navbarNav">
|
||||||
{% if session.get('user_id') %}
|
{% if session.get('user_id') %}
|
||||||
@@ -59,16 +61,17 @@
|
|||||||
<a href="{{ url_for('edit.edit_haproxy_config') }}" class="nav-link {{ 'active' if request.path.startswith('/edit') else '' }}">
|
<a href="{{ url_for('edit.edit_haproxy_config') }}" class="nav-link {{ 'active' if request.path.startswith('/edit') else '' }}">
|
||||||
<i class="bi bi-pencil-square"></i> Edit Config
|
<i class="bi bi-pencil-square"></i> Edit Config
|
||||||
</a>
|
</a>
|
||||||
<a href="{{ url_for('display_logs') }}" class="nav-link {{ 'active' if request.path.startswith('/logs') else '' }}">
|
<a href="{{ url_for('main.display_logs') }}" class="nav-link {{ 'active' if request.path.startswith('/logs') else '' }}">
|
||||||
<i class="bi bi-shield-lock"></i> Logs
|
<i class="bi bi-shield-lock"></i> Logs
|
||||||
</a>
|
</a>
|
||||||
<a href="{{ url_for('display_haproxy_stats') }}" class="nav-link {{ 'active' if request.path.startswith('/statistics') else '' }}">
|
<a href="{{ url_for('main.display_haproxy_stats') }}" class="nav-link {{ 'active' if request.path.startswith('/statistics') else '' }}">
|
||||||
<i class="bi bi-graph-up-arrow"></i> Stats
|
<i class="bi bi-graph-up-arrow"></i> Stats
|
||||||
</a>
|
</a>
|
||||||
<a href="http://{{ request.host.split(':')[0] }}:8404/stats" class="nav-link" target="_blank" rel="noopener">
|
<a href="http://{{ request.host.split(':')[0] }}:8404/stats" class="nav-link" target="_blank" rel="noopener">
|
||||||
<i class="bi bi-box-arrow-up-right"></i> HAProxy Stats
|
<i class="bi bi-box-arrow-up-right"></i> HAProxy Stats
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|
||||||
<!-- User Dropdown Menu -->
|
<!-- User Dropdown Menu -->
|
||||||
<div class="nav-item dropdown">
|
<div class="nav-item dropdown">
|
||||||
<button class="nav-link dropdown-toggle btn btn-link text-decoration-none d-flex align-items-center gap-2" id="userMenu" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
<button class="nav-link dropdown-toggle btn btn-link text-decoration-none d-flex align-items-center gap-2" id="userMenu" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||||
@@ -119,6 +122,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|
||||||
<!-- MAIN CONTENT -->
|
<!-- MAIN CONTENT -->
|
||||||
<main class="container-fluid py-4">
|
<main class="container-fluid py-4">
|
||||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
||||||
@@ -133,16 +137,20 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
||||||
|
|
||||||
<!-- Breadcrumb -->
|
<!-- Breadcrumb -->
|
||||||
{% block breadcrumb %}{% endblock %}
|
{% block breadcrumb %}{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
<!-- Toast Container -->
|
<!-- Toast Container -->
|
||||||
<div id="toast-stack" class="toast-container position-fixed top-0 end-0 p-3"></div>
|
<div id="toast-stack" class="toast-container position-fixed top-0 end-0 p-3"></div>
|
||||||
|
|
||||||
|
|
||||||
<!-- Page Content -->
|
<!-- Page Content -->
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
|
||||||
<!-- FOOTER -->
|
<!-- FOOTER -->
|
||||||
<footer class="app-footer border-top border-secondary bg-dark mt-5">
|
<footer class="app-footer border-top border-secondary bg-dark mt-5">
|
||||||
<div class="container-fluid px-4 py-3">
|
<div class="container-fluid px-4 py-3">
|
||||||
@@ -170,12 +178,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
|
||||||
<!-- SCRIPTS -->
|
<!-- SCRIPTS -->
|
||||||
<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="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>
|
<script src="{{ url_for('static', filename='js/main.js') }}"></script>
|
||||||
{% block scripts %}{% endblock %}
|
{% block scripts %}{% endblock %}
|
||||||
{% block page_js %}{% endblock %}
|
{% block page_js %}{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/**
|
/**
|
||||||
* Auto-dismiss alerts after 5 seconds
|
* Auto-dismiss alerts after 5 seconds
|
||||||
|
|||||||
Reference in New Issue
Block a user