summaryrefslogtreecommitdiffstats
path: root/templates/base.html
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-16 17:23:46 -0700
committerAndrew Godwin2022-11-16 17:23:46 -0700
commit44af0d4c59eed1c3715e9044e75c159cfddf54cc (patch)
treed2c87f953de12a526a158f2c03def5eb08b2d203 /templates/base.html
parent495e955378d62dc439c4c210785e5d401bc77f64 (diff)
downloadtakahe-44af0d4c59eed1c3715e9044e75c159cfddf54cc.tar.gz
takahe-44af0d4c59eed1c3715e9044e75c159cfddf54cc.tar.bz2
takahe-44af0d4c59eed1c3715e9044e75c159cfddf54cc.zip
Add start of a settings (config) system
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 %}