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>
|
|
|
|
|
|
2024-02-02 08:56:04 +01:00
|
|
|
<!-- CSS -->
|
2024-01-13 12:42:54 +01:00
|
|
|
<link rel="stylesheet" href="/static/main.css">
|
2024-01-31 11:13:11 +01:00
|
|
|
<link href="https://cdn.jsdelivr.net/npm/fastbootstrap@2.2.0/dist/css/fastbootstrap.min.css" rel="stylesheet" integrity="sha256-V6lu+OdYNKTKTsVFBuQsyIlDiRWiOmtC8VQ8Lzdm2i4=" crossorigin="anonymous">
|
2024-01-26 11:07:41 +01:00
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
2024-01-23 11:17:24 +01:00
|
|
|
|
2024-01-26 10:25:01 +01:00
|
|
|
<!-- Axios Library-->
|
2024-01-23 11:17:24 +01:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
|
2024-01-12 10:57:58 +01:00
|
|
|
</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 %}
|
2024-01-26 10:25:01 +01:00
|
|
|
<li class="nav-item me-2">
|
|
|
|
|
<a class="btn text-white btn-primary" aria-current="page" href="{{ url_for('profile') }}">Profil</a>
|
|
|
|
|
</li>
|
2024-01-12 16:53:03 +01:00
|
|
|
<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 -->
|
2024-01-31 11:13:11 +01:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
|
2024-02-02 09:10:01 +01:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/sortablejs@1.15.2/Sortable.min.js"></script>
|
2024-01-12 10:57:58 +01:00
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|