fixxed routes for bp in template files
This commit is contained in:
+5
-5
@@ -27,7 +27,7 @@
|
||||
<!-- Navbar -->
|
||||
<nav class="navbar navbar-expand-lg bg-dark navbar-dark">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="{{ url_for('index') }}">MK Control</a>
|
||||
<a class="navbar-brand" href="{{ url_for('main.index') }}">MK Control</a>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
|
||||
data-bs-target="#navbarNav" aria-controls="navbarNav"
|
||||
aria-expanded="false" aria-label="Toggle navigation">
|
||||
@@ -36,16 +36,16 @@
|
||||
<div class="collapse navbar-collapse" id="navbarNav">
|
||||
<ul class="navbar-nav me-auto">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {% if request.path == url_for('index') %}active{% endif %}"
|
||||
href="{{ url_for('index') }}">Home</a>
|
||||
<a class="nav-link {% if request.path == url_for('main.index') %}active{% endif %}"
|
||||
href="{{ url_for('main.index') }}">Home</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {% if 'control' in request.path %}active{% endif %}"
|
||||
href="{{ url_for('index') }}">Steuerung</a>
|
||||
href="{{ url_for('main.index') }}">Steuerung</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {% if 'admin' in request.path %}active{% endif %}"
|
||||
href="{{ url_for('admin') }}">Admin</a>
|
||||
href="{{ url_for('admin.admin') }}">Admin</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {% if 'soundboard' in request.path %}active{% endif %}"
|
||||
|
||||
Reference in New Issue
Block a user