Strip to minimal: single route, static HTML, no logic

This commit is contained in:
2026-07-23 11:10:33 +04:00
parent 420d09e6b5
commit 6cb8c05f05
9 changed files with 21 additions and 141 deletions
+14 -42
View File
@@ -1,44 +1,16 @@
{% extends "base.html" %}
{% block title %}Autotest Nubes{% endblock %}
{% block content %}
<div class="card" style="max-width: 780px; margin: 32px auto;">
<div class="card-header">
<i data-lucide="cloud" style="width: 16px; height: 16px; margin-right: 6px;"></i>
Организация
</div>
<div class="card-body">
{% if organization %}
<table>
<thead>
<tr>
<th>Имя</th>
<th>instanceUid</th>
<th>Сервис</th>
<th>Статус</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ organization.displayName }}</td>
<td style="font-family: monospace; font-size: 12px;">{{ organization.instanceUid }}</td>
<td>{{ organization.svc }}</td>
<td>
<span class="badge badge-success">
<i data-lucide="check" style="width: 12px; height: 12px;"></i>
{{ organization.state.explainedStatus or "OK" }}
</span>
</td>
</tr>
</tbody>
</table>
{% else %}
<div class="empty">
<i data-lucide="alert-circle" style="width: 24px; height: 24px; color: var(--muted);"></i>
<p>{% if error %}Ошибка: {{ error }}{% else %}Организация не найдена.{% endif %}</p>
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8" />
<title>Autotest</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}" />
</head>
<body>
<div class="card" style="max-width: 400px; margin: 48px auto;">
<div class="card-header">Autotest</div>
<div class="card-body">
<p>OK</p>
</div>
{% endif %}
</div>
</div>
{% endblock %}
</body>
</html>