mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-22 10:01:45 +00:00
Rows in bootstrap 4 tables are taller by default. This is better suited for mobile layouts and look prettier on desktops too. Adopting this approach instead of condensed tables eliminates the need for striping, bordering and narrower tables. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
52 lines
1.4 KiB
HTML
52 lines
1.4 KiB
HTML
{% extends "app.html" %}
|
|
{% comment %}
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
{% endcomment %}
|
|
|
|
{% load bootstrap %}
|
|
{% load i18n %}
|
|
|
|
{% block configuration %}
|
|
|
|
<table class="table names-table">
|
|
<thead>
|
|
<tr>
|
|
<th>{% trans "Type" %}</th>
|
|
<th class="names-domain-column">{% trans "Domain Name" %}</th>
|
|
<th>{% trans "Services" %}</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for domain in status.domains|dictsort:"domain_type.display_name" %}
|
|
<tr>
|
|
<td>{{ domain.domain_type.display_name }}</td>
|
|
<td class="names-domain-column">{{ domain.name }}</td>
|
|
<td>{{ domain.get_readable_services|join:', ' }}</td>
|
|
<td>
|
|
<a href="{% url domain.domain_type.configuration_url %}"
|
|
role="button" class="btn btn-md btn-default">
|
|
{% trans "Configure" %}
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
|
|
{% for domain_type in status.unused_domain_types %}
|
|
<tr>
|
|
<td>{{ domain_type.display_name }}</td>
|
|
<td>-</td>
|
|
<td>-</td>
|
|
<td>
|
|
<a href="{% url domain_type.configuration_url %}"
|
|
role="button" class="btn btn-md btn-default">
|
|
{% trans "Configure" %}
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
{% endblock %}
|