takahe/templates/admin/domains.html

34 lines
1.2 KiB
HTML
Raw Permalink Normal View History

{% extends "admin/base_main.html" %}
2022-11-16 20:12:28 -08:00
2022-11-17 16:43:00 -08:00
{% block subtitle %}Domains{% endblock %}
2022-11-16 20:12:28 -08:00
{% block settings_content %}
<div class="view-options">
<span class="spacer"></span>
<a href="{% url "admin_domains_create" %}" class="button"><i class="fa-solid fa-plus"></i> Add Domain</a>
</div>
<table class="items">
2022-11-16 20:12:28 -08:00
{% for domain in domains %}
<tr>
<td class="icon">
<a href="{{ domain.urls.edit }}" class="overlay"></a>
<i class="fa-solid fa-globe"></i>
</td>
<td class="name">
<a href="{{ domain.urls.edit }}" class="overlay"></a>
2022-11-16 20:12:28 -08:00
{{ domain.domain }}
<small>
{% if domain.service_domain %}{{ domain.service_domain }}{% endif %}
2022-11-16 20:12:28 -08:00
</small>
2023-01-14 09:32:48 -08:00
</td>
<td class="stat">
{% if domain.public %}Public{% else %}Private{% endif %}
{% if domain.default %}(Default){% endif %}
</td>
</tr>
2022-11-16 20:12:28 -08:00
{% empty %}
<tr class="empty"><td>You have no domains set up.</td></tr>
2022-11-16 20:12:28 -08:00
{% endfor %}
</table>
2022-11-16 20:12:28 -08:00
{% endblock %}