2022-11-05 21:17:27 +01: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 14:53:39 +01:00
|
|
|
<link rel="manifest" href="/manifest.json" />
|
2022-11-14 00:14:38 +01:00
|
|
|
<script src="{% static "js/hyperscript.min.js" %}"></script>
|
2022-11-16 02:30:30 +01:00
|
|
|
<script src="{% static "js/htmx.min.js" %}"></script>
|
2022-11-17 01:23:46 +01:00
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
--color-highlight: {{ config.highlight_color }};
|
|
|
|
}
|
|
|
|
</style>
|
2022-11-05 21:17:27 +01:00
|
|
|
{% block extra_head %}{% endblock %}
|
|
|
|
</head>
|
2022-11-16 02:30:30 +01:00
|
|
|
<body class="{% block body_class %}{% endblock %}" hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'>
|
2022-11-05 21:17:27 +01:00
|
|
|
|
2022-11-13 07:21:52 +01:00
|
|
|
<main>
|
|
|
|
<header>
|
|
|
|
<a class="logo" href="/">
|
2022-11-18 03:21:00 +01:00
|
|
|
<img src="{{ config.site_icon }}" width="32">
|
2022-11-06 03:10:39 +01:00
|
|
|
{{ config.site_name }}
|
|
|
|
</a>
|
2022-11-13 07:21:52 +01:00
|
|
|
<menu>
|
2022-11-05 21:17:27 +01:00
|
|
|
{% if user.is_authenticated %}
|
2022-11-18 02:52:00 +01:00
|
|
|
<a href="{% url "compose" %}" title="Compose" {% if top_section == "compose" %}class="selected"{% endif %}>
|
2022-11-18 03:21:00 +01:00
|
|
|
<i class="fa-solid fa-feather"></i>
|
2022-11-17 05:12:28 +01:00
|
|
|
</a>
|
2022-11-18 02:52:00 +01:00
|
|
|
<a href="{% url "search" %}" title="Search" {% if top_section == "search" %}class="selected"{% endif %}>
|
2022-11-18 03:21:00 +01:00
|
|
|
<i class="fa-solid fa-search"></i>
|
2022-11-18 01:43:00 +01:00
|
|
|
</a>
|
2022-11-23 03:21:01 +01:00
|
|
|
{% if allows_refresh %}
|
|
|
|
<a href="." title="Refresh" hx-get="." hx-select=".left-column" hx-target=".left-column" hx-swap="outerHTML">
|
|
|
|
<i class="fa-solid fa-rotate"></i>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
2022-11-13 07:21:52 +01:00
|
|
|
<div class="gap"></div>
|
|
|
|
<a href="/identity/select/" class="identity">
|
2022-11-06 21:48:04 +01:00
|
|
|
{% if not request.identity %}
|
2022-11-13 07:21:52 +01:00
|
|
|
No Identity
|
|
|
|
<img src="{% static "img/unknown-icon-128.png" %}" title="No identity selected">
|
2022-11-06 03:10:39 +01:00
|
|
|
{% else %}
|
2022-11-17 16:21:42 +01:00
|
|
|
{{ request.identity.username }}
|
2022-11-18 03:21:00 +01:00
|
|
|
<img src="{{ request.identity.local_icon_url }}" title="{{ request.identity.handle }}">
|
2022-11-06 03:10:39 +01:00
|
|
|
{% endif %}
|
|
|
|
</a>
|
2022-11-05 21:17:27 +01:00
|
|
|
{% else %}
|
2022-11-18 03:21:00 +01:00
|
|
|
<div class="gap"></div>
|
|
|
|
<a href="/auth/login/" class="identity"><i class="fa-solid fa-right-to-bracket"></i> Login</a>
|
2022-11-05 21:17:27 +01:00
|
|
|
{% endif %}
|
2022-11-13 07:21:52 +01:00
|
|
|
</menu>
|
|
|
|
</header>
|
2022-11-05 21:17:27 +01:00
|
|
|
|
2022-11-18 01:43:00 +01:00
|
|
|
{% block full_content %}
|
2022-11-18 03:21:00 +01:00
|
|
|
{% block pre_content %}
|
|
|
|
{% endblock %}
|
|
|
|
<div class="columns">
|
|
|
|
<div class="left-column">
|
|
|
|
{% block content %}
|
|
|
|
{% endblock %}
|
|
|
|
</div>
|
|
|
|
<div class="right-column">
|
|
|
|
{% block right_content %}
|
|
|
|
{% include "activities/_menu.html" %}
|
|
|
|
{% endblock %}
|
|
|
|
</div>
|
2022-11-18 01:43:00 +01:00
|
|
|
</div>
|
2022-11-05 21:17:27 +01:00
|
|
|
{% endblock %}
|
|
|
|
</main>
|
|
|
|
|
2022-11-18 03:21:00 +01:00
|
|
|
<footer>
|
2022-11-21 04:53:28 +01:00
|
|
|
<span>Powered by <a href="https://jointakahe.org">Takahē {{ config.version }}</a></span>
|
2022-11-18 03:21:00 +01:00
|
|
|
</footer>
|
|
|
|
|
2022-11-05 21:17:27 +01:00
|
|
|
</body>
|
|
|
|
</html>
|