88 строки
3.1 KiB
HTML
88 строки
3.1 KiB
HTML
<!doctype html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Профиль хоста — {{ app_name }}</title>
|
|
<link rel="stylesheet" href="/static/app.css">
|
|
</head>
|
|
<body>
|
|
<div class="shell">
|
|
<header class="topbar">
|
|
<div>
|
|
<div class="brand">Профиль хоста</div>
|
|
<div class="muted">Автоматически выбранная сборка Virtuality</div>
|
|
</div>
|
|
<div class="top-meta">
|
|
<span>user: {{ user }}</span>
|
|
<a class="link-pill" href="/network">Сеть</a>
|
|
<a class="link-pill" href="/vm/create">Создать VM</a>
|
|
<a class="link-pill" href="/">← Дашборд</a>
|
|
</div>
|
|
</header>
|
|
|
|
<section class="grid stats">
|
|
<article class="card stat">
|
|
<div class="label">Profile</div>
|
|
<div class="value small">{{ profile.label }}</div>
|
|
</article>
|
|
<article class="card stat">
|
|
<div class="label">Arch</div>
|
|
<div class="value small">{{ profile.arch }}</div>
|
|
</article>
|
|
<article class="card stat">
|
|
<div class="label">Guest arch</div>
|
|
<div class="value small">{{ profile.recommended_guest_arch }}</div>
|
|
</article>
|
|
<article class="card stat">
|
|
<div class="label">Default network</div>
|
|
<div class="value small">{{ profile.recommended_network }}</div>
|
|
</article>
|
|
</section>
|
|
|
|
<section class="grid two">
|
|
<article class="card">
|
|
<div class="card-head">
|
|
<h2>Модель устройства</h2>
|
|
<span class="pill">auto-detected</span>
|
|
</div>
|
|
<div class="meta-grid">
|
|
<div><span>Model</span><strong>{{ profile.model }}</strong></div>
|
|
<div><span>VM mode</span><strong>{{ profile.recommended_vm_mode }}</strong></div>
|
|
<div><span>Ready</span><strong>{{ 'yes' if profile.ready else 'needs check' }}</strong></div>
|
|
</div>
|
|
<div class="notice top-space">
|
|
Raspberry Pi и Orange Pi 5 работают как ARM64 edge nodes. Для них правильный путь — ARM64-гости, NAT-сеть и cloud images.
|
|
</div>
|
|
</article>
|
|
|
|
<article class="card">
|
|
<div class="card-head">
|
|
<h2>Проверки</h2>
|
|
<form method="post" action="/host/refresh"><button>Переопределить профиль</button></form>
|
|
</div>
|
|
<div class="services">
|
|
{% for check in profile.checks %}
|
|
<div class="service-row">
|
|
<span>
|
|
<strong>{{ check.name }}</strong>
|
|
<small>{{ check.hint }}</small>
|
|
</span>
|
|
<span class="status {{ 'ok' if check.ok else 'err' }}">{{ 'OK' if check.ok else 'FAIL' }}</span>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</article>
|
|
</section>
|
|
|
|
<section class="card">
|
|
<div class="card-head">
|
|
<h2>Raw profile</h2>
|
|
<span class="pill">/var/lib/virtuality/config/host_profile.json</span>
|
|
</div>
|
|
<pre>{{ profile_json }}</pre>
|
|
</section>
|
|
</div>
|
|
</body>
|
|
</html>
|