feat: admin status, first user is admin, site settings

This commit is contained in:
Per Stark
2025-01-22 12:30:52 +01:00
parent 5a1095f538
commit 16e0611a88
12 changed files with 207 additions and 38 deletions

View File

@@ -5,7 +5,7 @@
opacity: 0.5;
}
</style>
<main class="grow flex flex-col prose container mx-auto mt-2 sm:mt-4">
<main class="grow flex flex-col prose container mx-auto mt-2 p-5 sm:mt-4">
<h1 class="text-center">Account Settings</h1>
<div class="form-control">
<label class="label">

View File

@@ -0,0 +1,13 @@
{% extends 'body_base.html' %}
{% block main %}
<main class="container justify-center flex-grow flex mx-auto mt-4 p-5">
Hello
{% if user.admin %}
admin
{% else %}
user
{% endif %}
{{settings}}
</main>
{% endblock %}