v0.5.14: шапка в одну строку, стенды — большие кнопки по центру

This commit is contained in:
2026-08-03 09:39:42 +04:00
parent d26f9a6818
commit da6e765af5
3 changed files with 55 additions and 40 deletions
+16 -15
View File
@@ -15,31 +15,32 @@
<img src="{{ url_for('static', filename='logo.svg') }}" alt="Nubes" class="logo" width="150" height="33">
<span class="badge badge-blue">polygon v{{ version }}</span>
<a href="/swagger" class="swagger-link">📋 Swagger</a>
</div>
<div class="header-status">
<span class="sep">·</span>
<span class="dot dot-green"></span>
<span class="status-text">Работает</span>
<span class="sep">·</span>
<span>Сервисов: <strong>{{ svc_count }}</strong></span>
<span class="header-stat">Сервисов: <strong>{{ svc_count }}</strong></span>
<span class="sep">·</span>
<span>Инстансов: <strong>{{ inst_count }}</strong></span>
<span class="header-stat">Инстансов: <strong>{{ inst_count }}</strong></span>
<span class="sep">·</span>
<span>Задержка: <strong>{{ delay }}s</strong></span>
<span class="header-stat">Задержка: <strong>{{ delay }}s</strong></span>
</div>
{% if stands_list|length > 1 %}
<div class="header-stands">
{% for s in stands_list %}
<a href="/{{ s.id }}/" class="stand-chip {% if s.id == current_stand %}stand-active{% endif %}">
<span class="stand-name">{{ s.id }}</span>
<span class="stand-count">{{ s.count }}</span>
</a>
{% endfor %}
</div>
{% endif %}
</header>
<main>
<!-- ── Стенды ── -->
{% if stands_list|length > 1 %}
<section class="stands-section">
{% for s in stands_list %}
<a href="/{{ s.id }}/" class="stand-card {% if s.id == current_stand %}stand-active{% endif %}">
<span class="stand-name">{{ s.id }}</span>
<span class="stand-count">{{ s.count }} сервисов</span>
</a>
{% endfor %}
</section>
{% endif %}
<!-- ── Что такое Polygon ── -->
<section class="card">
<div class="card-header">