2022-11-05 20:17:27 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>{% block title %}{% endblock %} - {{ config.site_name }}</title>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
{% load static %}
|
|
|
|
<link rel="stylesheet" href="{% static "css/style.css" %}" type="text/css" media="screen" />
|
|
|
|
<link rel="stylesheet" href="{% static "fonts/raleway/raleway.css" %}" type="text/css" />
|
|
|
|
<link rel="stylesheet" href="{% static "fonts/font_awesome/all.min.css" %}" type="text/css" />
|
2022-11-16 13:53:39 +00:00
|
|
|
<link rel="manifest" href="/manifest.json" />
|
2022-11-13 23:14:38 +00:00
|
|
|
<script src="{% static "js/hyperscript.min.js" %}"></script>
|
2022-11-16 01:30:30 +00:00
|
|
|
<script src="{% static "js/htmx.min.js" %}"></script>
|
2022-11-17 00:23:46 +00:00
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
--color-highlight: {{ config.highlight_color }};
|
|
|
|
}
|
|
|
|
</style>
|
2022-11-05 20:17:27 +00:00
|
|
|
{% block extra_head %}{% endblock %}
|
|
|
|
</head>
|
2022-11-16 01:30:30 +00:00
|
|
|
<body class="{% block body_class %}{% endblock %}" hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'>
|
2022-11-05 20:17:27 +00:00
|
|
|
|
2022-11-13 06:21:52 +00:00
|
|
|
<main>
|
|
|
|
<header>
|
|
|
|
<a class="logo" href="/">
|
2022-11-06 02:10:39 +00:00
|
|
|
<img src="{% static "img/icon-128.png" %}" width="32">
|
|
|
|
{{ config.site_name }}
|
|
|
|
</a>
|
2022-11-13 06:21:52 +00:00
|
|
|
<menu>
|
2022-11-05 20:17:27 +00:00
|
|
|
{% if user.is_authenticated %}
|
2022-11-17 00:23:46 +00:00
|
|
|
<a href="/compose/" title="Compose"><i class="fa-solid fa-feather"></i> Compose</a>
|
|
|
|
<a href="/settings/" title="Settings"><i class="fa-solid fa-gear"></i> Settings</a>
|
|
|
|
{% if request.user.admin %}
|
|
|
|
<a href="/settings/system/" title="Admin"><i class="fa-solid fa-toolbox"></i> Admin</a>
|
|
|
|
{% endif %}
|
2022-11-13 06:21:52 +00:00
|
|
|
<div class="gap"></div>
|
|
|
|
<a href="/identity/select/" class="identity">
|
2022-11-06 20:48:04 +00:00
|
|
|
{% if not request.identity %}
|
2022-11-13 06:21:52 +00:00
|
|
|
No Identity
|
|
|
|
<img src="{% static "img/unknown-icon-128.png" %}" title="No identity selected">
|
2022-11-06 20:48:04 +00:00
|
|
|
{% elif request.identity.icon_uri %}
|
2022-11-13 06:21:52 +00:00
|
|
|
{{ request.identity.username }} <small>@{{ request.identity.domain_id }}</small>
|
|
|
|
<img src="{{ request.identity.icon_uri }}" title="{{ request.identity.handle }}">
|
2022-11-06 02:10:39 +00:00
|
|
|
{% else %}
|
2022-11-13 06:21:52 +00:00
|
|
|
{{ request.identity.username }} <small>@{{ request.identity.domain_id }}</small>
|
|
|
|
<img src="{% static "img/unknown-icon-128.png" %}" title="{{ request.identity.handle }}">
|
2022-11-06 02:10:39 +00:00
|
|
|
{% endif %}
|
|
|
|
</a>
|
2022-11-05 20:17:27 +00:00
|
|
|
{% else %}
|
2022-11-13 06:21:52 +00:00
|
|
|
<a href="/auth/login/"><i class="fa-solid fa-right-to-bracket"></i> Login</a>
|
2022-11-05 20:17:27 +00:00
|
|
|
{% endif %}
|
2022-11-13 06:21:52 +00:00
|
|
|
</menu>
|
|
|
|
</header>
|
2022-11-05 20:17:27 +00:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% endblock %}
|
|
|
|
</main>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|