domain block and ban - improve layout

This commit is contained in:
rimu 2024-02-02 17:05:12 +13:00
parent 1f167e37af
commit a7006ab898

View file

@ -51,16 +51,7 @@
<a class="w-100 btn btn-primary" href="/d/{{ domain.id }}/block">{{ _('Block') }}</a> <a class="w-100 btn btn-primary" href="/d/{{ domain.id }}/block">{{ _('Block') }}</a>
</div> </div>
{% endif %} {% endif %}
</div>
</div>
</div>
{% if user_access('ban users', current_user.id) or user_access('manage users', current_user.id) %} {% if user_access('ban users', current_user.id) or user_access('manage users', current_user.id) %}
<div class="card mt-3">
<div class="card-header">
<h2>{{ _('Domain management') }}</h2>
</div>
<div class="card-body">
<div class="row">
{% if domain.banned %} {% if domain.banned %}
<div class="col-8"> <div class="col-8">
<a class="w-100 btn btn-primary confirm_first" href="/d/{{ domain.id }}/unban">{{ _('Unban') }}</a> <a class="w-100 btn btn-primary confirm_first" href="/d/{{ domain.id }}/unban">{{ _('Unban') }}</a>
@ -70,10 +61,10 @@
<a class="w-100 btn btn-primary confirm_first" href="/d/{{ domain.id }}/ban">{{ _('Ban instance-wide') }}</a> <a class="w-100 btn btn-primary confirm_first" href="/d/{{ domain.id }}/ban">{{ _('Ban instance-wide') }}</a>
</div> </div>
{% endif %} {% endif %}
</div>
</div>
</div>
{% endif %} {% endif %}
</div>
</div>
</div>
{% endif %} {% endif %}
{% include "_inoculation_links.html" %} {% include "_inoculation_links.html" %}