Strip to minimal: single route, static HTML, no logic
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>{% block title %}Autotest Nubes{% endblock %}</title>
|
||||
<link rel="icon" type="image/svg+xml" href="{{ url_for('static', filename='favicon.svg') }}" />
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}" />
|
||||
<script src="https://unpkg.com/lucide@latest"></script>
|
||||
{% block head %}{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<div class="layout">
|
||||
<main class="content">
|
||||
{% block content %}{% endblock %}
|
||||
</main>
|
||||
</div>
|
||||
<script>lucide.createIcons();</script>
|
||||
</body>
|
||||
</html>
|
||||
+14
-42
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user