summaryrefslogtreecommitdiffstats
path: root/templates/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html12
1 files changed, 10 insertions, 2 deletions
diff --git a/templates/base.html b/templates/base.html
index 553a2cc..e392cb9 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -11,6 +11,11 @@
<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 }}"}'>
@@ -23,8 +28,11 @@
</a>
<menu>
{% if user.is_authenticated %}
- <a href="/compose/"><i class="fa-solid fa-feather"></i> Compose</a>
- <a href="/settings/"><i class="fa-solid fa-gear"></i> Settings</a>
+ <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 %}
<div class="gap"></div>
<a href="/identity/select/" class="identity">
{% if not request.identity %}