54 lines
2.7 KiB
HTML
54 lines
2.7 KiB
HTML
<!doctype html>
|
|
<html lang="ru" data-bs-theme="dark">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>AI Station</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css" rel="stylesheet">
|
|
<link href="/static/style.css" rel="stylesheet">
|
|
</head>
|
|
<body>
|
|
<main class="container py-5">
|
|
<header class="d-flex align-items-center justify-content-between mb-5">
|
|
<div>
|
|
<div class="text-secondary small text-uppercase fw-semibold mb-2">AI infrastructure</div>
|
|
<h1 class="h2 mb-1">AI Station</h1>
|
|
<div class="text-secondary">Центр доступа к сервисам станции</div>
|
|
</div>
|
|
<span class="badge rounded-pill text-bg-success px-3 py-2"><i class="bi bi-circle-fill me-2 small"></i>{{ online_count }} из {{ services | length }} доступны</span>
|
|
</header>
|
|
|
|
<section>
|
|
<div class="d-flex align-items-center justify-content-between mb-3">
|
|
<h2 class="h5 mb-0">Сервисы</h2>
|
|
<span class="text-secondary small">{{ services | length }} сервиса</span>
|
|
</div>
|
|
<div class="row g-3">
|
|
{% for service in services %}
|
|
<div class="col-12 col-md-6 col-xl-4">
|
|
<a class="service-card card h-100 text-decoration-none" href="{{ service.url }}" {% if not service.internal and service.url != '#' %}target="_blank" rel="noopener noreferrer"{% endif %}>
|
|
<div class="card-body p-4">
|
|
<div class="d-flex align-items-start justify-content-between mb-4">
|
|
<div class="service-icon"><i class="bi {{ service.icon }}"></i></div>
|
|
<span class="badge {% if service.status == 'online' or service.status == 'local' %}text-bg-success{% elif service.status == 'offline' %}text-bg-danger{% else %}text-bg-secondary{% endif %}">{{ service.status_label }}</span>
|
|
</div>
|
|
<h3 class="h5">{{ service.name }}</h3>
|
|
<p class="text-secondary mb-0">{{ service.description }}</p>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
{% else %}
|
|
<div class="col-12"><div class="alert alert-secondary">Сервисы пока не настроены. Отредактируйте services.json.</div></div>
|
|
{% endfor %}
|
|
</div>
|
|
</section>
|
|
|
|
<footer class="mt-5 pt-3 border-top border-secondary-subtle d-flex justify-content-between text-secondary small">
|
|
<span>AI Station Portal v0.8</span>
|
|
<a class="text-secondary text-decoration-none" href="/admin/login">Администрирование</a>
|
|
</footer>
|
|
</main>
|
|
</body>
|
|
</html>
|