takahe/templates/admin/domains.html

34 lines
1.2 KiB
HTML
Raw Normal View History

2023-05-03 20:04:58 +00:00
{% extends "admin/base_main.html" %}
2022-11-17 04:12:28 +00:00
2022-11-18 00:43:00 +00:00
{% block subtitle %}Domains{% endblock %}
2022-11-17 04:12:28 +00:00
2023-04-27 06:54:38 +00: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-17 04:12:28 +00: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-17 04:12:28 +00:00
{{ domain.domain }}
<small>
{% if domain.service_domain %}{{ domain.service_domain }}{% endif %}
2022-11-17 04:12:28 +00:00
</small>
2023-01-14 17:32:48 +00:00
</td>
<td class="stat">
{% if domain.public %}Public{% else %}Private{% endif %}
{% if domain.default %}(Default){% endif %}
</td>
</tr>
2022-11-17 04:12:28 +00:00
{% empty %}
<tr class="empty"><td>You have no domains set up.</td></tr>
2022-11-17 04:12:28 +00:00
{% endfor %}
</table>
2022-11-17 04:12:28 +00:00
{% endblock %}