timetracker/templates/application.html
2021-01-30 17:40:40 -07:00

52 lines
1.6 KiB
HTML

{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<title>BTech Tracker</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<link rel="shortcut icon" type="image/png" href="{% static 'favicon.ico' %}"/>
{% block head %}
{% endblock %}
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="{% static 'css/base.css' %}">
</head>
<body>
<header class="navigation">
<p><strong>BTech Time Tracker</strong></p>
{% if user.is_authenticated %}
<nav>
<a href="{% url 'account-update' user.id %}">{{ user.first_name }} {{ user.last_name }}</a> /
<a class="logout" href="{% url 'logout' %}">Logout</a>
</nav>
{% else %}
<nav>
<a class="login" href="{% url 'login' %}">Login</a>
</nav>
{% endif %}
</header>
<aside>
{% block aside %}
{% endblock %}
</aside>
<main>
{% block content %}
{% endblock %}
{% if messages %}
<div class="messages">
{% for message in messages %}
<p {% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</p>
{% endfor %}
</div>
{% endif %}
</main>
<footer>
</footer>
</body>
</html>