2018-09-08 20:54:09 +02:00
|
|
|
{% extends "base" %}
|
|
|
|
{% import "macros" as macros %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
Administration of {{ instance.name }}
|
|
|
|
{% endblock title %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h1>{{ "Instances" | _ }}</h1>
|
|
|
|
|
|
|
|
{{ macros::tabs(links=['/admin', '/admin/instances'], titles=['Configuration', 'Instances'], selected=2) }}
|
|
|
|
|
|
|
|
<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 %}
|
|
|
|
<a href="/admin/instances/{{ instance.id }}/block">
|
|
|
|
{% if instance.blocked %}
|
|
|
|
Unblock
|
|
|
|
{% else %}
|
|
|
|
Block
|
|
|
|
{% endif %}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
2018-09-08 20:54:09 +02:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{{ macros::paginate(page=page, total=n_pages) }}
|
|
|
|
{% endblock content %}
|