2018-09-08 20:54:09 +02:00
|
|
|
{% extends "base" %}
|
|
|
|
{% import "macros" as macros %}
|
|
|
|
|
|
|
|
{% block title %}
|
2018-09-10 21:23:35 +02:00
|
|
|
{{ "Administration of {{ instance.name }}" | _(instance=instance) }}
|
2018-09-08 20:54:09 +02:00
|
|
|
{% endblock title %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h1>{{ "Instances" | _ }}</h1>
|
|
|
|
|
2018-09-09 12:25:55 +02:00
|
|
|
{{ macros::tabs(links=['/admin', '/admin/instances', '/admin/users'], titles=['Configuration', 'Instances', 'Users'], selected=2) }}
|
2018-09-08 20:54:09 +02:00
|
|
|
|
|
|
|
<div class="list">
|
|
|
|
{% for instance in instances %}
|
|
|
|
<div class="flex">
|
|
|
|
<p class="grow">
|
|
|
|
<a href="https://{{ instance.public_domain }}">{{ instance.name }}</a>
|
|
|
|
<small>{{ instance.public_domain }}</small>
|
|
|
|
</p>
|
2018-09-08 21:07:55 +02:00
|
|
|
{% if not instance.local %}
|
2018-09-19 19:13:07 +02:00
|
|
|
<form class="inline" method="post" action="/admin/instances/{{ instance.id }}/block">
|
2018-09-08 21:07:55 +02:00
|
|
|
{% if instance.blocked %}
|
2018-09-19 19:13:07 +02:00
|
|
|
<input type="submit" value="{{ 'Unblock' | _ }}">
|
2018-09-08 21:07:55 +02:00
|
|
|
{% else %}
|
2018-09-19 19:13:07 +02:00
|
|
|
<input type="submit" value="{{ 'Block' | _ }}">
|
2018-09-08 21:07:55 +02:00
|
|
|
{% endif %}
|
2018-09-19 19:13:07 +02:00
|
|
|
</form>
|
2018-09-08 21:07:55 +02:00
|
|
|
{% endif %}
|
2018-09-08 20:54:09 +02:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{{ macros::paginate(page=page, total=n_pages) }}
|
|
|
|
{% endblock content %}
|