Luke Granger-Brown
ee3299223a
...except things under /accounts/, because I generally just trust that to do access control for me.
43 lines
1.6 KiB
HTML
43 lines
1.6 KiB
HTML
{% load static %}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<title>{% block fulltitle %}{% block title %}{% endblock title %} | BFOB Quotes{% endblock %}</title>
|
|
|
|
<link rel="stylesheet" href="{% static 'webfonts/fonts.css' %}" type="text/css">
|
|
<link rel="stylesheet" href="{% static 'css/styles.css' %}">
|
|
</head>
|
|
|
|
<body class="bg-bfobGray-dark text-bfobGray font-sans leading-normal tracking-normal">
|
|
|
|
<div class="container mx-auto">
|
|
<section class="flex justify-between items-center">
|
|
<h1 class="text-5xl font-bnto uppercase">
|
|
<a href="/">
|
|
BFOB <span class="text-bfobOrange">Quotes</span>
|
|
</a>
|
|
</h1>
|
|
<div>
|
|
{% if user.is_authenticated %}
|
|
<form action="/accounts/logout/" method="POST">
|
|
{% csrf_token %}
|
|
<input type="hidden" name="next" value="/accounts/logged_out/">
|
|
<button type="submit" class="px-4 py-1 rounded-full text-sm border border-bfobOrange text-bfobOrange hover:border-transparent hover:bg-bfobOrange hover:text-bfobGray-dark">Logout</button>
|
|
</form>
|
|
{% else %}
|
|
<a href="/accounts/discord/login/?process=login&next={{ request.path }}" class="px-4 py-1 rounded-full text-sm border border-bfobOrange text-bfobOrange hover:border-transparent hover:bg-bfobOrange hover:text-bfobGray-dark">Login</a>
|
|
{% endif %}
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
<div class="container mx-auto {% block content_extra_classes %}{% endblock %}">
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|