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