Instance (un)block endpoint

And hide the block button for the local instance
This commit is contained in:
Bat
2018-09-08 20:07:55 +01:00
parent c1e0b6c306
commit f1d5865a16
4 changed files with 24 additions and 9 deletions
+9 -7
View File
@@ -17,13 +17,15 @@ Administration of {{ instance.name }}
<a href="https://{{ instance.public_domain }}">{{ instance.name }}</a>
<small>{{ instance.public_domain }}</small>
</p>
<a href="/admin/instances/{{ instance.id }}/block">
{% if instance.blocked %}
Unblock
{% else %}
Block
{% endif %}
</a>
{% if not instance.local %}
<a href="/admin/instances/{{ instance.id }}/block">
{% if instance.blocked %}
Unblock
{% else %}
Block
{% endif %}
</a>
{% endif %}
</div>
{% endfor %}
</div>