Startseite auf Bibliothek geaendert
/ leitet jetzt auf /library weiter, Dashboard unter /dashboard erreichbar. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ea5a81cd17
commit
ff04bb2e9e
2 changed files with 7 additions and 2 deletions
|
|
@ -146,8 +146,13 @@ def setup_page_routes(app: web.Application, config: Config,
|
||||||
"format_time": MediaFile.format_time,
|
"format_time": MediaFile.format_time,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async def redirect_to_library(request: web.Request):
|
||||||
|
"""GET / -> Weiterleitung zur Bibliothek"""
|
||||||
|
raise web.HTTPFound("/library")
|
||||||
|
|
||||||
# Routes registrieren
|
# Routes registrieren
|
||||||
app.router.add_get("/", dashboard)
|
app.router.add_get("/", redirect_to_library)
|
||||||
|
app.router.add_get("/dashboard", dashboard)
|
||||||
app.router.add_get("/library", library)
|
app.router.add_get("/library", library)
|
||||||
app.router.add_get("/admin", admin)
|
app.router.add_get("/admin", admin)
|
||||||
app.router.add_get("/statistics", statistics)
|
app.router.add_get("/statistics", statistics)
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
<h1>VideoKonverter</h1>
|
<h1>VideoKonverter</h1>
|
||||||
</div>
|
</div>
|
||||||
<nav>
|
<nav>
|
||||||
<a href="/" class="nav-link {% if request.path == '/' %}active{% endif %}">Dashboard</a>
|
<a href="/dashboard" class="nav-link {% if request.path == '/dashboard' %}active{% endif %}">Dashboard</a>
|
||||||
<a href="/library" class="nav-link {% if request.path.startswith('/library') %}active{% endif %}">Bibliothek</a>
|
<a href="/library" class="nav-link {% if request.path.startswith('/library') %}active{% endif %}">Bibliothek</a>
|
||||||
<a href="/admin" class="nav-link {% if request.path == '/admin' %}active{% endif %}">Einstellungen</a>
|
<a href="/admin" class="nav-link {% if request.path == '/admin' %}active{% endif %}">Einstellungen</a>
|
||||||
<a href="/statistics" class="nav-link {% if request.path == '/statistics' %}active{% endif %}">Statistik</a>
|
<a href="/statistics" class="nav-link {% if request.path == '/statistics' %}active{% endif %}">Statistik</a>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue