Files
vpn-control-panel/app/templates/servers.html
smolkik-code 7c7c88621d Initial commit: VPN Control Panel
- FastAPI REST API with JWT auth
- aiogram 3 Telegram bot with admin middleware
- APScheduler daily tasks (expiry, reminders, revoke, sync)
- SQLAlchemy 2 async ORM with Alembic migrations
- Jinja2 admin panel (Dashboard, Users, Payments, Servers, Tariffs)
- VPN provider abstraction with MockProvider
- Stats service with revenue/subscription analytics
- Docker Compose (PostgreSQL + Redis + app)
- Healthcheck endpoint
2026-07-05 17:50:11 +07:00

43 lines
1.2 KiB
HTML

{% extends "base.html" %}
{% block title %}Servers — VPN Control Panel{% endblock %}
{% block content %}
<h2>Servers</h2>
<div class="count">{{ servers|length }} total</div>
<table>
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Host</th>
<th>Port</th>
<th>Protocol</th>
<th>Location</th>
<th>Load</th>
<th>Status</th>
<th>Created</th>
</tr>
</thead>
<tbody>
{% for s in servers %}
<tr>
<td>{{ s.id }}</td>
<td>{{ s.name }}</td>
<td>{{ s.host }}</td>
<td>{{ s.port }}</td>
<td><span class="badge badge-blue">{{ s.protocol.value }}</span></td>
<td>{{ s.location }} ({{ s.country_code }})</td>
<td>{{ s.load_percent }}%</td>
<td>
{% if s.is_active %}
<span class="badge badge-green">Active</span>
{% else %}
<span class="badge badge-red">Offline</span>
{% endif %}
</td>
<td>{{ s.created_at.strftime("%Y-%m-%d") }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}