From a7006ab898e208549b68c82450e0a39f4c3912aa Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Fri, 2 Feb 2024 17:05:12 +1300 Subject: [PATCH] domain block and ban - improve layout --- app/templates/domain/domain.html | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/app/templates/domain/domain.html b/app/templates/domain/domain.html index e362687f..80640540 100644 --- a/app/templates/domain/domain.html +++ b/app/templates/domain/domain.html @@ -51,29 +51,20 @@ {{ _('Block') }} {% endif %} - - - - {% if user_access('ban users', current_user.id) or user_access('manage users', current_user.id) %} -
-
-

{{ _('Domain management') }}

-
-
-
- {% if domain.banned %} - - {% else %} - + {% if user_access('ban users', current_user.id) or user_access('manage users', current_user.id) %} + {% if domain.banned %} + + {% else %} + + {% endif %} {% endif %}
- {% endif %} {% endif %} {% include "_inoculation_links.html" %}