intent/templates/base.html
Alec Perkins 1af217f6fb Add accounts and organizations (Phase 1)
Sign-in via django-allauth: emailed one-time codes, GitHub, Discord,
and Forgejo instances as OpenID Connect apps registered in admin.
Regular users never have a password; sysadmins sign in only at
/admin/ and are redirected there from the normal sign-in.

Organizations at the URL root with owner and collaborator roles, a
per-member project-create grant, and invites by username or email.
Email invites carry a bearer token stored only as a hash. The last
owner can't leave, be removed or be demoted. Permission checks live
in intent/access.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 07:10:27 -04:00

57 lines
2 KiB
HTML

{% load static %}<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light dark">
<title>{% block title %}Intent{% endblock %}</title>
{# Blocking on purpose: applies the saved theme before first paint. #}
<script src="{% static 'js/theme.js' %}"></script>
<link rel="stylesheet" href="{% static 'css/intent.css' %}">
{% block head %}{% endblock %}
</head>
<body>
<a class="skip-link" href="#main">Skip to content</a>
<header>
<nav aria-label="Main">
<ul>
<li><a href="{% url 'home' %}">Intent</a></li>
{% if user.is_authenticated %}
<li><a href="{% url 'invites:list' %}">Invitations</a></li>
<li><a href="{% url 'account_email' %}">Account</a></li>
<li>
<form method="post" action="{% url 'account_logout' %}">
{% csrf_token %}
<button type="submit">Sign out <span class="visually-hidden">{{ user.username }}</span></button>
</form>
</li>
{% else %}
<li><a href="{% url 'account_login' %}">Sign in</a></li>
{% endif %}
</ul>
</nav>
</header>
<main id="main" tabindex="-1">
{% if messages %}
<ul class="messages" role="status">
{% for message in messages %}
<li>{% if message.level_tag == "error" %}<strong>Error:</strong> {% endif %}{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
{% block content %}{% endblock %}
</main>
<footer>
{# Shown by theme.js; without JS the system preference applies. #}
<form id="theme-form" hidden>
<label for="theme-select">Theme</label>
<select id="theme-select" name="theme">
<option value="system">System</option>
<option value="light">Light</option>
<option value="dark">Dark</option>
</select>
</form>
</footer>
{% block body_end %}{% endblock %}
</body>
</html>