Group instances by service type, collapsible lists
This commit is contained in:
@@ -36,18 +36,18 @@
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if instances %}
|
||||
{% for svc_name, items in instance_groups.items() %}
|
||||
<div class="card" style="margin-top:8px;">
|
||||
<div class="card-header" style="cursor:pointer;" onclick="this.nextElementSibling.style.display=this.nextElementSibling.style.display==='none'?'block':'none'">Инстансы ({{ instances|length }})</div>
|
||||
<div class="card-body" style="padding:0;max-height:60vh;overflow-y:auto;">
|
||||
<div class="card-header" style="cursor:pointer;font-size:13px;" onclick="this.nextElementSibling.style.display=this.nextElementSibling.style.display==='none'?'block':'none'">{{ svc_name }} ({{ items|length }})</div>
|
||||
<div class="card-body" style="padding:0;max-height:200px;overflow-y:auto;">
|
||||
<table>
|
||||
{% for i in instances %}
|
||||
<tr><td style="font-size:12px;">{{ i.displayName }}</td><td style="font-size:11px;color:var(--muted);">{{ i.svc }}</td><td><span class="badge badge-success" style="font-size:10px;">{{ i.explainedStatus or "?" }}</span></td></tr>
|
||||
{% for i in items %}
|
||||
<tr><td style="font-size:12px;">{{ i.displayName }}</td><td><span class="badge badge-success" style="font-size:10px;">{{ i.explainedStatus or "?" }}</span></td></tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="right">
|
||||
<p>Скоро здесь будут тесты.</p>
|
||||
|
||||
Reference in New Issue
Block a user