2024-01-12 10:57:58 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" >
|
|
|
|
|
<title>{{ title }} - HabitTracker</title>
|
|
|
|
|
|
|
|
|
|
<!-- Bootstrap CSS -->
|
2024-01-13 12:42:54 +01:00
|
|
|
<link rel="stylesheet" href="/static/main.css">
|
2024-01-12 10:57:58 +01:00
|
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
|
|
|
|
</head>
|
2024-01-17 11:17:35 +01:00
|
|
|
<body style="background-color: White">
|
2024-01-13 12:42:54 +01:00
|
|
|
|
2024-01-16 11:16:21 +01:00
|
|
|
<nav class="navbar navbar-expand-lg" style="background-color: #000000">
|
2024-01-12 10:57:58 +01:00
|
|
|
<div class="container-fluid">
|
2024-01-16 11:16:21 +01:00
|
|
|
<a class="navbar-brand" href="{{ url_for('index') }}" style="color: ivory">HabitTracker</a>
|
2024-01-12 10:57:58 +01:00
|
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
|
</button>
|
|
|
|
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
|
|
|
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
|
|
|
|
<li class="nav-item">
|
2024-01-16 11:16:21 +01:00
|
|
|
<a class="nav-link text-white {% if title == 'Home' %} active {% endif %}" aria-current="page" href="{{ url_for('index') }}">Home</a>
|
2024-01-12 10:57:58 +01:00
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<ul class="navbar-nav mb-2 mb-lg-0">
|
2024-01-12 16:53:03 +01:00
|
|
|
{% if not current_user.is_authenticated %}
|
2024-01-12 10:57:58 +01:00
|
|
|
<li class="nav-item me-2">
|
2024-01-16 11:16:21 +01:00
|
|
|
<a class="btn text-white btn-primary" aria-current="page" href="{{ url_for('login') }}">Login</a>
|
2024-01-12 10:57:58 +01:00
|
|
|
</li>
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<a class="btn btn-outline-secondary" aria-current="page" href="{{ url_for('signup') }}">Signup</a>
|
|
|
|
|
</li>
|
2024-01-12 16:53:03 +01:00
|
|
|
{% else %}
|
|
|
|
|
<li class="nav-item me-2">
|
|
|
|
|
<a class="btn btn-primary" aria-current="page" href="{{ url_for('logout') }}">Logout</a>
|
|
|
|
|
</li>
|
|
|
|
|
{% endif %}
|
2024-01-12 10:57:58 +01:00
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</nav>
|
2024-01-13 12:42:54 +01:00
|
|
|
|
2024-01-16 11:16:21 +01:00
|
|
|
<div class="container mt-3 pb-3">
|
2024-01-12 10:57:58 +01:00
|
|
|
{% block content %} {% endblock %}
|
|
|
|
|
|
|
|
|
|
<!-- Bootstrap JS -->
|
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js" integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r" crossorigin="anonymous"></script>
|
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.min.js" integrity="sha384-BBtl+eGJRgqQAUMxJ7pMwbEyER4l1g+O15P+16Ep7Q9Q+zqX6gSbd85u4mG4QzX+" crossorigin="anonymous"></script>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|