2024-05-23 20:49:34 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="de">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Turnstunden WebApp</title>
|
2024-05-27 17:18:22 +02:00
|
|
|
<link rel="stylesheet" href="/css/bootstrap.min.css">
|
2024-05-23 20:49:34 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
2024-05-26 20:05:30 +02:00
|
|
|
|
2024-05-23 20:49:34 +02:00
|
|
|
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
|
|
|
<a class="navbar-brand" href="/">Turnstunden WebApp</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">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
<div class="collapse navbar-collapse" id="navbarNav">
|
|
|
|
<ul class="navbar-nav">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="/">Trainings</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="/riege">Riegen</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="/teilnehmer">Teilnehmende</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="/profile">Profil</a>
|
|
|
|
</li>
|
|
|
|
<% if (session && session.role === 'admin') { %>
|
|
|
|
<li class="nav-item"><a class="nav-link" href="/admin">Admin</a></li>
|
|
|
|
<% } %>
|
2024-05-26 20:05:30 +02:00
|
|
|
</ul>
|
|
|
|
<ul class="navbar-nav ml-auto">
|
2024-05-23 20:49:34 +02:00
|
|
|
<% if (session && session.userId) { %>
|
2024-05-26 20:05:30 +02:00
|
|
|
<li class="nav-item"><a class="nav-link" href="/logout">Logout</a></li>
|
2024-05-23 20:49:34 +02:00
|
|
|
<% } else { %>
|
|
|
|
<li class="nav-item"><a class="nav-link" href="/login">Login</a></li>
|
|
|
|
<% } %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<div class="container">
|