ux: More style (bulma / fork-awesome) for logged in users

This commit is contained in:
selfhoster selfhoster 2026-09-21 21:17:44 +02:00
commit a60434e662
14 changed files with 275 additions and 62 deletions

View file

@ -1,38 +1,14 @@
{% extends 'base.html' %}
{% extends 'app.html' %}
{% block main %}
<main id="center">
<img src="/assets/img/logo.png" id="logo">
<p style="text-align: center;">You are logged in as {{ user.username }}</p>
<div id="login-line">
<a href="/logout" id="submit-login" value="Logout">Logout</a>
</div>
{% if can_create_domain %}
<div>
<h2>Create domain</h2>
<form action="/domain" method="POST">
<input type="text" name="domainname" placeholder="example.com">
<button type="submit" class="button is-info">Create</button>
</form>
</div>
{% endif %}
<div>
<h2>Active domains you can see</h2>
<ul>
{% for domain in domains %}
<li><a href="/domain/{{ domain.name }}">{{ domain.name }}</a></li>
{% endfor %}
</ul>
</div>
{% if other_users %}
<div>
<h2>Other users you have permission to see on your own domain</h2>
<ul>
{% for user in other_users %}
<li>{{ user.mail }}</li>
{% endfor %}
</ul>
</div>
{% endif %}
<main>
<section class="section">
<h1 class="title has-text-centered">Welcome to llldap, {{ user.username }}</h1>
{% if can_create_domain %}
{% include 'partials/create_domain_form.html' %}
{% endif %}
{% if domains|length() > 1 %}
{% include 'partials/create_user_form.html' %}
{% endif %}
</section>
</main>
{% endblock %}