2020-12-11 14:29:18 -05:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
|
|
|
|
<!-- Bootstrap CSS -->
|
2021-05-20 17:44:13 -04:00
|
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
|
2020-12-11 14:29:18 -05:00
|
|
|
|
|
|
|
<title>{% block title %}{% endblock %}</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
2021-05-20 17:44:13 -04:00
|
|
|
<div class="container-fluid">
|
|
|
|
<a class="navbar-brand" href="/">RecMaint</a>
|
2020-12-14 13:26:47 -05:00
|
|
|
|
2021-05-20 17:44:13 -04:00
|
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#user-nav" aria-controls="user-nav" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
<div id="user-nav" class="collapse navbar-collapse justify-content-end">
|
|
|
|
<div class="navbar-nav">
|
|
|
|
{% if user.is_staff %}
|
|
|
|
<a class="nav-item nav-link" href="/admin"> Admin </a>
|
|
|
|
{% endif %}
|
|
|
|
{% if user.is_authenticated %}
|
|
|
|
<a class="nav-item nav-link" href="/auth/logout"> Logout: {{ user }} </a>
|
|
|
|
{% else %}
|
|
|
|
<a class="nav-item nav-link" href="/auth/login?next={{ request.get_full_path }}"> Login </a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2020-12-11 14:29:18 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
<div id="content" class="m-3">
|
|
|
|
{% block content %}{% endblock %}
|
|
|
|
</div>
|
|
|
|
|
2021-05-20 17:44:13 -04:00
|
|
|
<!-- Bootstrap JS -->
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4" crossorigin="anonymous"></script>
|
2020-12-11 14:29:18 -05:00
|
|
|
</body>
|
|
|
|
</html>
|