mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
domain block and ban - improve layout
This commit is contained in:
parent
1f167e37af
commit
a7006ab898
1 changed files with 10 additions and 19 deletions
|
@ -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" %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue