2020-12-11 14:29:18 -05:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2022-01-23 23:03:08 -05:00
|
|
|
<meta name="viewport"
|
|
|
|
content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
2020-12-11 14:29:18 -05:00
|
|
|
<!-- Bootstrap CSS -->
|
2022-01-31 15:09:36 -05:00
|
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
|
2022-01-23 23:03:08 -05:00
|
|
|
rel="stylesheet"
|
2022-01-31 15:09:36 -05:00
|
|
|
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
|
2022-01-23 23:03:08 -05:00
|
|
|
crossorigin="anonymous">
|
|
|
|
<title>
|
2022-01-25 00:03:52 -05:00
|
|
|
{% block title %}Claremont MakerSpace{% endblock %}
|
2022-01-23 23:03:08 -05:00
|
|
|
</title>
|
2020-12-11 14:29:18 -05:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
2021-05-20 17:44:13 -04:00
|
|
|
<div class="container-fluid">
|
2022-01-25 00:03:52 -05:00
|
|
|
<a class="navbar-brand" href="{% url 'root' %}">Claremont MakerSpace</a>
|
2022-01-23 23:03:08 -05: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">
|
2021-05-20 17:44:13 -04:00
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
<div id="user-nav" class="collapse navbar-collapse justify-content-end">
|
|
|
|
<div class="navbar-nav">
|
2021-05-20 20:12:52 -04:00
|
|
|
{% block nav_extra %}{% endblock %}
|
2021-05-20 17:44:13 -04:00
|
|
|
{% if user.is_staff %}
|
2022-01-23 23:03:08 -05:00
|
|
|
<a class="nav-item nav-link"
|
2022-01-25 00:03:52 -05:00
|
|
|
href="{% block admin_link %}{% url 'admin:index' %}{% endblock %}">Admin</a>
|
2021-05-20 17:44:13 -04:00
|
|
|
{% endif %}
|
|
|
|
{% if user.is_authenticated %}
|
2022-01-25 00:03:52 -05:00
|
|
|
<a class="nav-item nav-link" href="{% url 'logout' %}">Logout: {{ user }}</a>
|
2021-05-20 17:44:13 -04:00
|
|
|
{% else %}
|
2022-01-23 23:03:08 -05:00
|
|
|
<a class="nav-item nav-link"
|
2022-01-25 00:03:52 -05:00
|
|
|
href="{% url 'login' %}?next={{ request.get_full_path }}">Login</a>
|
2021-05-20 17:44:13 -04:00
|
|
|
{% 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 -->
|
2022-01-31 15:09:36 -05:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
|
2020-12-11 14:29:18 -05:00
|
|
|
</body>
|
|
|
|
</html>
|