mirror of
https://github.com/perstarkse/minne.git
synced 2026-03-29 22:01:59 +02:00
feat: admin status, first user is admin, site settings
This commit is contained in:
@@ -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">
|
||||
|
||||
13
templates/auth/admin_panel.html
Normal file
13
templates/auth/admin_panel.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user