Cosmetics: make SaaS list more compact
This commit is contained in:
parent
5836d6e6ed
commit
aea944a732
|
@ -6,51 +6,49 @@
|
||||||
<h1 class="service-name">{{ service.verbose_name }}</h1>
|
<h1 class="service-name">{{ service.verbose_name }}</h1>
|
||||||
<p class="service-description">{{ service.description }}</p>
|
<p class="service-description">{{ service.description }}</p>
|
||||||
|
|
||||||
|
<table class="table service-list">
|
||||||
|
<thead class="thead-dark">
|
||||||
|
<tr>
|
||||||
|
<th scope="col">{% trans "Name" %}</th>
|
||||||
|
<th scope="col">{% trans "Is active?" %}</th>
|
||||||
|
<th scope="col">{% trans "Service" %}</th>
|
||||||
|
<th scope="col">{% trans "Service info" %}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
{% for saas in object_list %}
|
{% for saas in object_list %}
|
||||||
<div class="card service-card">
|
<tr>
|
||||||
<div class="card-header">
|
<td>
|
||||||
<div class="row">
|
<strong>{{ saas.name }}</strong><br>
|
||||||
<div class="col-md-8">
|
<span class="text-secondary">{% trans "Installed on" %}: <strong>{{ saas.get_site_domain|default:"-" }}</strong></span>
|
||||||
<strong>{{ saas.name }}</strong>
|
</td>
|
||||||
</div>
|
<td class="text-{{saas.is_active|yesno:'success,danger'}}">
|
||||||
{% comment "Hidden until API provides this information" %}
|
<i class="fa fa-{{ saas.is_active|yesno:'check,times' }}"></i>
|
||||||
<div class="col-md text-right">
|
<span class="sr-only">{{ saas.is_active|yesno }}</span>
|
||||||
{% trans "Installed on" %}: <strong>{{ saas.domain|default:"-" }}</strong>
|
</td>
|
||||||
</div>
|
<td>
|
||||||
{% endcomment %}
|
<a class="btn btn-sm btn-link" href="{{ saas.manager_url }}" target="_blank" rel="noopener noreferrer" title="{% trans 'Open service admin panel' %}">
|
||||||
</div>
|
<i class="fab fa-{{ saas.service }}"></i> {{ saas.service|capfirst }}
|
||||||
</div><!-- /card-header-->
|
<span class="sr-only">{% trans "Open service admin panel" %}</span> <i class="fas fa-external-link-alt"></i></a>
|
||||||
<div class="card-body row">
|
</td>
|
||||||
<div class="col-md-4">
|
<td>
|
||||||
<h4>{{ saas.service|capfirst }}</h4>
|
|
||||||
<p class="text-center service-brand"><i class="fab fa-{{ saas.service }} fa-10x"></i></p>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-3 border-left border-right">
|
|
||||||
<h4 class="mb-3">{% trans "Service info" %}</h4>
|
|
||||||
<label class="w-25">{% trans "active" %}:</label> <strong>{{ saas.is_active|yesno }}</strong><br/>
|
|
||||||
{% for key, value in saas.data.items %}
|
{% for key, value in saas.data.items %}
|
||||||
<label class="w-25">{{ key }}:</label> <strong>{{ value }}</strong><br/>
|
<label>{{ key }}:</label> <strong>{{ value }}</strong><br/>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</td>
|
||||||
<div class="col-md-5 text-right">
|
</tr>
|
||||||
<div class="service-manager-link">
|
|
||||||
<a class="btn btn-primary" href="{{ saas.manager_url }}" target="_blank" rel="noopener noreferrer">{% trans "Open service admin panel" %} <i class="fas fa-external-link-alt"></i></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% empty %}
|
{% empty %}
|
||||||
<div class="row">
|
<tr>
|
||||||
<div class="col-md-4">
|
<td colspan="4">
|
||||||
<div class="card service-card shadow p-3 mb-5 bg-white rounded">
|
<h5 class="text-dark">
|
||||||
<div class="card-body text-center">
|
<i class="fas fa-fire fa-2x mr-2"></i>
|
||||||
<p class="mb-4"><i class="fas fa-fire fa-5x"></i></p>
|
|
||||||
{# Translators: saas page when there isn't any saas. #}
|
{# Translators: saas page when there isn't any saas. #}
|
||||||
<h5 class="card-title text-dark">{% trans "Ooops! Looks like there is nothing here!" %}</h5>
|
{% trans "Ooops! Looks like there is nothing here!" %}
|
||||||
</div>
|
</h5>
|
||||||
</div>
|
</td>
|
||||||
</div>
|
</tr>
|
||||||
</div>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue