79 lines
3.5 KiB
HTML
79 lines
3.5 KiB
HTML
<!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" />
|
|
<link rel="manifest" href="/manifest.json" />
|
|
<script src="{% static "js/hyperscript.min.js" %}"></script>
|
|
<script src="{% static "js/htmx.min.js" %}"></script>
|
|
<style>
|
|
body {
|
|
--color-highlight: {{ config.highlight_color }};
|
|
}
|
|
</style>
|
|
{% block extra_head %}{% endblock %}
|
|
</head>
|
|
<body class="{% block body_class %}{% endblock %}" hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'>
|
|
|
|
<main>
|
|
<header>
|
|
<a class="logo" href="/">
|
|
<img src="{% static "img/icon-128.png" %}" width="32">
|
|
{{ config.site_name }}
|
|
</a>
|
|
<menu>
|
|
{% if user.is_authenticated %}
|
|
<a href="{% url "compose" %}" title="Compose" {% if top_section == "compose" %}class="selected"{% endif %}>
|
|
<i class="fa-solid fa-feather"></i> Compose
|
|
</a>
|
|
<a href="{% url "search" %}" title="Search" {% if top_section == "search" %}class="selected"{% endif %}>
|
|
<i class="fa-solid fa-search"></i> Search
|
|
</a>
|
|
<a href="{% url "settings" %}" title="Settings" {% if top_section == "settings" %}class="selected"{% endif %}>
|
|
<i class="fa-solid fa-gear"></i> Settings
|
|
</a>
|
|
<div class="gap"></div>
|
|
<a href="/identity/select/" class="identity">
|
|
{% if not request.identity %}
|
|
No Identity
|
|
<img src="{% static "img/unknown-icon-128.png" %}" title="No identity selected">
|
|
{% elif request.identity.icon %}
|
|
{{ request.identity.username }}
|
|
<img src="{{ request.identity.icon.url }}" title="{{ request.identity.handle }}">
|
|
{% elif request.identity.icon_uri %}
|
|
{{ request.identity.username }}
|
|
<img src="{{ request.identity.icon_uri }}" title="{{ request.identity.handle }}">
|
|
{% else %}
|
|
{{ request.identity.username }}
|
|
<img src="{% static "img/unknown-icon-128.png" %}" title="{{ request.identity.handle }}">
|
|
{% endif %}
|
|
</a>
|
|
{% else %}
|
|
<a href="/auth/login/"><i class="fa-solid fa-right-to-bracket"></i> Login</a>
|
|
{% endif %}
|
|
</menu>
|
|
</header>
|
|
|
|
{% block full_content %}
|
|
<div class="columns">
|
|
<div class="left-column">
|
|
{% block content %}
|
|
{% endblock %}
|
|
</div>
|
|
<div class="right-column">
|
|
{% block right_content %}
|
|
{% include "activities/_menu.html" %}
|
|
{% endblock %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
</main>
|
|
|
|
</body>
|
|
</html>
|