v1.2.13: Organization card — same style as infra items + UUID

- Collapsible header like other infra cards
- Table row with displayName + instanceUid + status badge
- ClientID shown in header
This commit is contained in:
2026-07-31 14:04:02 +04:00
parent beaff3f1cf
commit 3c97fea4bc
2 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ from routes.api_scenario_run import bp_run as api_scenario_run_bp
from routes.api_scenario_defs import bp_defs as api_scenario_defs_bp from routes.api_scenario_defs import bp_defs as api_scenario_defs_bp
# Версия — меняется при КАЖДОМ изменении кода. Показывается в топбаре UI. # Версия — меняется при КАЖДОМ изменении кода. Показывается в топбаре UI.
VERSION = "1.2.12" VERSION = "1.2.13"
app = Flask(__name__, template_folder="templates", static_folder="static") app = Flask(__name__, template_folder="templates", static_folder="static")
app.config["NUBES_API_ENDPOINT"] = os.getenv("NUBES_API_ENDPOINT", "https://lk-api-gateway-test.ngcloud.ru/api/v1/svc") app.config["NUBES_API_ENDPOINT"] = os.getenv("NUBES_API_ENDPOINT", "https://lk-api-gateway-test.ngcloud.ru/api/v1/svc")
+5 -4
View File
@@ -107,10 +107,11 @@
<div class="view-header">Обзор</div> <div class="view-header">Обзор</div>
{% if organization %} {% if organization %}
<div class="card"> <div class="card">
<div class="card-header">Организация</div> <div class="card-header" style="cursor:pointer;" onclick="this.nextElementSibling.style.display=this.nextElementSibling.style.display==='none'?'block':'none'">Организация{% if client_id %} ({{ client_id }}){% endif %}</div>
<div class="card-body" style="padding:8px 12px;font-size:13px;"> <div class="card-body" style="padding:0;">
{{ organization.displayName }}{% if client_id %} ({{ client_id }}){% endif %}<br> <table>
<span class="badge badge-success" style="font-size:11px;">{{ organization.explainedStatus or "OK" }}</span> <tr><td style="font-size:12px;padding:3px 10px;">{{ organization.displayName }}<br><span style="color:var(--muted);font-size:10px;">{{ organization.instanceUid }}</span></td><td><span class="badge badge-success" style="font-size:10px;">{{ organization.explainedStatus or 'OK' }}</span></td></tr>
</table>
</div> </div>
</div> </div>
{% endif %} {% endif %}