revert
This commit is contained in:
@@ -4,7 +4,7 @@ from utils.haproxy_config import update_haproxy_config, is_frontend_exist, count
|
|||||||
|
|
||||||
main_bp = Blueprint('main', __name__)
|
main_bp = Blueprint('main', __name__)
|
||||||
|
|
||||||
@main_bp.route('/', methods=['GET', 'POST'], endpoint='home')
|
@main_bp.route('/', methods=['GET', 'POST'])
|
||||||
@requires_auth
|
@requires_auth
|
||||||
def index():
|
def index():
|
||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
|
|||||||
@@ -18,13 +18,13 @@
|
|||||||
<body class="bg-body">
|
<body class="bg-body">
|
||||||
<header class="header1" id="header1">
|
<header class="header1" id="header1">
|
||||||
<div class="container d-flex align-items-center justify-content-between flex-wrap gap-2 py-2">
|
<div class="container d-flex align-items-center justify-content-between flex-wrap gap-2 py-2">
|
||||||
<a href="{{ url_for('main.home') }}" class="d-flex align-items-center text-decoration-none logo text-reset">
|
<a href="{{ url_for('main.index') }}" class="d-flex align-items-center text-decoration-none logo text-reset">
|
||||||
<h3 class="m-0 d-flex align-items-center gap-2">
|
<h3 class="m-0 d-flex align-items-center gap-2">
|
||||||
<i class="fas fa-globe"></i><span>HAProxy Configurator</span>
|
<i class="fas fa-globe"></i><span>HAProxy Configurator</span>
|
||||||
</h3>
|
</h3>
|
||||||
</a>
|
</a>
|
||||||
<nav class="menu d-flex align-items-center gap-1 flex-wrap">
|
<nav class="menu d-flex align-items-center gap-1 flex-wrap">
|
||||||
<a href="{{ url_for('main.home') }}" class="menu-link {{ 'active' if request.path.startswith('/home') else '' }}"><i class="bi bi-speedometer"></i> Dashboard</a>
|
<a href="{{ url_for('main.index') }}" class="menu-link {{ 'active' if request.path.startswith('/home') else '' }}"><i class="bi bi-speedometer"></i> Dashboard</a>
|
||||||
<a href="{{ url_for('main.index') }}" class="menu-link {{ 'active' if request.path == '/' else '' }}"><i class="bi bi-plus-circle"></i> Add FE/BE</a>
|
<a href="{{ url_for('main.index') }}" class="menu-link {{ 'active' if request.path == '/' else '' }}"><i class="bi bi-plus-circle"></i> Add FE/BE</a>
|
||||||
<a href="{{ url_for('edit.edit_haproxy_config') }}" class="menu-link {{ 'active' if request.path.startswith('/edit') else '' }}"><i class="bi bi-pencil-square"></i> Edit Configuration</a>
|
<a href="{{ url_for('edit.edit_haproxy_config') }}" class="menu-link {{ 'active' if request.path.startswith('/edit') else '' }}"><i class="bi bi-pencil-square"></i> Edit Configuration</a>
|
||||||
<a href="{{ url_for('display_logs') }}" class="menu-link {{ 'active' if request.path.startswith('/logs') else '' }}"><i class="bi bi-shield-lock"></i> Logs</a>
|
<a href="{{ url_for('display_logs') }}" class="menu-link {{ 'active' if request.path.startswith('/logs') else '' }}"><i class="bi bi-shield-lock"></i> Logs</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user