2025-12-06 11:40:51 +00:00
|
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
<div class="space-y-4">
|
|
|
|
|
|
<div class="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3">
|
|
|
|
|
|
<div>
|
2025-12-06 13:58:46 +00:00
|
|
|
|
<div class="text-xs text-slate-400 mb-1">{{ t("server_detail.server") }}</div>
|
2025-12-06 11:40:51 +00:00
|
|
|
|
<h1 class="text-lg font-semibold tracking-tight flex items-center gap-2">
|
|
|
|
|
|
{{ server.name }}
|
|
|
|
|
|
{% if server.is_expired %}
|
|
|
|
|
|
<span class="inline-flex items-center rounded-full bg-rose-600/15 border border-rose-600/60 px-2 py-0.5 text-[10px] text-rose-200">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
{{ t("status.expired") }}
|
2025-12-06 11:40:51 +00:00
|
|
|
|
</span>
|
|
|
|
|
|
{% elif server.is_expiring_soon %}
|
|
|
|
|
|
<span class="inline-flex items-center rounded-full bg-amber-500/15 border border-amber-500/60 px-2 py-0.5 text-[10px] text-amber-200">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
{{ t("status.expiring") }}
|
2025-12-06 11:40:51 +00:00
|
|
|
|
</span>
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
</h1>
|
|
|
|
|
|
{% if server.hostname %}
|
|
|
|
|
|
<p class="text-xs text-slate-400">{{ server.hostname }}</p>
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
{% if server.contract_end %}
|
|
|
|
|
|
<p class="text-[11px] text-slate-500 mt-1">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
{{ t("server_detail.contract_end") }}: {{ server.contract_end }}
|
2025-12-06 11:40:51 +00:00
|
|
|
|
{% if server.days_until_contract_end is not none %}
|
|
|
|
|
|
{% if server.days_until_contract_end < 0 %}
|
2025-12-06 13:58:46 +00:00
|
|
|
|
({{ t("server_detail.days_ago", days=(server.days_until_contract_end * -1)) }})
|
2025-12-06 11:40:51 +00:00
|
|
|
|
{% elif server.days_until_contract_end == 0 %}
|
2025-12-06 13:58:46 +00:00
|
|
|
|
({{ t("server_detail.today") }})
|
2025-12-06 11:40:51 +00:00
|
|
|
|
{% else %}
|
2025-12-06 13:58:46 +00:00
|
|
|
|
({{ t("server_detail.in_days", days=server.days_until_contract_end) }})
|
2025-12-06 11:40:51 +00:00
|
|
|
|
{% endif %}
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
</p>
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="flex flex-wrap gap-2 text-xs items-center">
|
|
|
|
|
|
<span class="inline-flex items-center rounded-full bg-slate-800 px-2 py-0.5 text-slate-300">
|
|
|
|
|
|
{{ server.provider }}
|
|
|
|
|
|
</span>
|
|
|
|
|
|
<span class="inline-flex items-center rounded-full bg-slate-800 px-2 py-0.5 text-slate-300">
|
|
|
|
|
|
{{ server.type }}
|
|
|
|
|
|
</span>
|
|
|
|
|
|
{% if server.location %}
|
|
|
|
|
|
<span class="inline-flex items-center rounded-full bg-slate-800 px-2 py-0.5 text-slate-300">
|
|
|
|
|
|
{{ server.location }}
|
|
|
|
|
|
</span>
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
{% if server.tags %}
|
|
|
|
|
|
<span class="inline-flex items-center rounded-full bg-indigo-500/20 border border-indigo-500/60 px-2 py-0.5 text-indigo-100">
|
|
|
|
|
|
{{ server.tags }}
|
|
|
|
|
|
</span>
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
<a
|
|
|
|
|
|
href="/servers/{{ server.id }}/edit"
|
|
|
|
|
|
class="ml-2 rounded-lg border border-slate-700 px-3 py-1 text-xs text-slate-100 hover:border-slate-500 hover:text-white"
|
|
|
|
|
|
>
|
2025-12-06 13:58:46 +00:00
|
|
|
|
{{ t("server_detail.edit") }}
|
2025-12-06 11:40:51 +00:00
|
|
|
|
</a>
|
2025-12-06 13:58:46 +00:00
|
|
|
|
<form method="post" action="/servers/{{ server.id }}/archive" onsubmit="return confirm('{{ t("server_detail.archive_confirm") }}');">
|
2025-12-06 11:40:51 +00:00
|
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token }}" />
|
|
|
|
|
|
<button
|
|
|
|
|
|
type="submit"
|
|
|
|
|
|
class="rounded-lg border border-rose-600 px-3 py-1 text-xs text-rose-200 hover:bg-rose-600/10"
|
|
|
|
|
|
>
|
2025-12-06 13:58:46 +00:00
|
|
|
|
{{ t("server_detail.archive") }}
|
2025-12-06 11:40:51 +00:00
|
|
|
|
</button>
|
|
|
|
|
|
</form>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="grid md:grid-cols-2 gap-4">
|
|
|
|
|
|
<!-- Network & Cost -->
|
|
|
|
|
|
<section class="rounded-xl border border-slate-800 bg-slate-900/70 p-4 space-y-2">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
<h2 class="text-sm font-semibold text-slate-100">{{ t("section.net_costs") }}</h2>
|
2025-12-06 11:40:51 +00:00
|
|
|
|
<dl class="text-xs text-slate-300 space-y-1">
|
|
|
|
|
|
<div class="flex justify-between gap-3">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
<dt class="text-slate-400">{{ t("field.ipv4") }}</dt>
|
2025-12-06 11:40:51 +00:00
|
|
|
|
<dd class="text-right">{% if server.ipv4 %}{{ server.ipv4 }}{% else %}–{% endif %}</dd>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="flex justify-between gap-3">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
<dt class="text-slate-400">{{ t("field.ipv6") }}</dt>
|
2025-12-06 11:40:51 +00:00
|
|
|
|
<dd class="text-right">{% if server.ipv6 %}{{ server.ipv6 }}{% else %}–{% endif %}</dd>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="flex justify-between gap-3">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
<dt class="text-slate-400">{{ t("field.costs") }}</dt>
|
2025-12-06 11:40:51 +00:00
|
|
|
|
<dd class="text-right">
|
|
|
|
|
|
{% if server.price %}
|
|
|
|
|
|
{{ "%.2f"|format(server.price) }} {{ server.currency }} /
|
2025-12-06 13:58:46 +00:00
|
|
|
|
{{ t("price.month") if server.billing_period == "monthly" else t("price.year") }}
|
2025-12-06 11:40:51 +00:00
|
|
|
|
{% else %}–{% endif %}
|
|
|
|
|
|
</dd>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="flex justify-between gap-3">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
<dt class="text-slate-400">{{ t("field.contract") }}</dt>
|
2025-12-06 11:40:51 +00:00
|
|
|
|
<dd class="text-right">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
{% if server.contract_start %}{{ t("label.contract_start") }} {{ server.contract_start }}{% endif %}
|
|
|
|
|
|
{% if server.contract_end %} {{ t("label.contract_end") }} {{ server.contract_end }}{% endif %}
|
2025-12-06 11:40:51 +00:00
|
|
|
|
{% if not server.contract_start and not server.contract_end %}–{% endif %}
|
|
|
|
|
|
</dd>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Hardware -->
|
|
|
|
|
|
<section class="rounded-xl border border-slate-800 bg-slate-900/70 p-4 space-y-2">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
<h2 class="text-sm font-semibold text-slate-100">{{ t("section.hardware") }}</h2>
|
2025-12-06 11:40:51 +00:00
|
|
|
|
<dl class="text-xs text-slate-300 space-y-1">
|
|
|
|
|
|
<div class="flex justify-between gap-3">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
<dt class="text-slate-400">{{ t("field.cpu") }}</dt>
|
2025-12-06 11:40:51 +00:00
|
|
|
|
<dd class="text-right">
|
|
|
|
|
|
{% if server.cpu_model %}{{ server.cpu_model }}{% else %}–{% endif %}
|
|
|
|
|
|
{% if server.cpu_cores %} ({{ server.cpu_cores }} Cores){% endif %}
|
|
|
|
|
|
</dd>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="flex justify-between gap-3">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
<dt class="text-slate-400">{{ t("field.ram") }}</dt>
|
2025-12-06 11:40:51 +00:00
|
|
|
|
<dd class="text-right">
|
|
|
|
|
|
{% if server.ram_mb %}{{ server.ram_mb }} MB{% else %}–{% endif %}
|
|
|
|
|
|
</dd>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="flex justify-between gap-3">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
<dt class="text-slate-400">{{ t("field.storage") }}</dt>
|
2025-12-06 11:40:51 +00:00
|
|
|
|
<dd class="text-right">
|
|
|
|
|
|
{% if server.storage_gb %}{{ server.storage_gb }} GB{% else %}–{% endif %}
|
|
|
|
|
|
{% if server.storage_type %} ({{ server.storage_type }}){% endif %}
|
|
|
|
|
|
</dd>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Access -->
|
|
|
|
|
|
<section class="rounded-xl border border-slate-800 bg-slate-900/70 p-4 space-y-2">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
<h2 class="text-sm font-semibold text-slate-100">{{ t("section.access") }}</h2>
|
2025-12-06 11:40:51 +00:00
|
|
|
|
<dl class="text-xs text-slate-300 space-y-1">
|
|
|
|
|
|
<div class="flex justify-between gap-3">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
<dt class="text-slate-400">{{ t("field.management") }}</dt>
|
2025-12-06 11:40:51 +00:00
|
|
|
|
<dd class="text-right">
|
|
|
|
|
|
{% if server.mgmt_url %}
|
|
|
|
|
|
<a href="{{ server.mgmt_url }}" target="_blank" rel="noopener noreferrer" class="text-indigo-300 hover:text-indigo-200 underline">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
{{ t("nav.console") }}
|
2025-12-06 11:40:51 +00:00
|
|
|
|
</a>
|
|
|
|
|
|
{% else %}–{% endif %}
|
|
|
|
|
|
</dd>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="flex justify-between gap-3">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
<dt class="text-slate-400">{{ t("field.mgmt_user") }}</dt>
|
2025-12-06 11:40:51 +00:00
|
|
|
|
<dd class="text-right">{% if server.mgmt_user %}{{ server.mgmt_user }}{% else %}–{% endif %}</dd>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="flex justify-between gap-3">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
<dt class="text-slate-400">{{ t("field.mgmt_password") }}</dt>
|
2025-12-06 11:40:51 +00:00
|
|
|
|
<dd class="text-right">
|
|
|
|
|
|
{% if server.mgmt_password_encrypted %}
|
|
|
|
|
|
{% if mgmt_password %}
|
|
|
|
|
|
<span class="font-mono text-slate-100">{{ mgmt_password }}</span>
|
|
|
|
|
|
{% else %}
|
2025-12-06 13:58:46 +00:00
|
|
|
|
<span class="text-slate-500">{{ t("mgmt.password_encrypted_missing") }}</span>
|
2025-12-06 11:40:51 +00:00
|
|
|
|
{% endif %}
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
–
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
</dd>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="flex justify-between gap-3">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
<dt class="text-slate-400">{{ t("field.ssh_user") }}</dt>
|
2025-12-06 11:40:51 +00:00
|
|
|
|
<dd class="text-right">{% if server.ssh_user %}{{ server.ssh_user }}{% else %}–{% endif %}</dd>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="flex justify-between gap-3">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
<dt class="text-slate-400">{{ t("field.ssh_key_hint") }}</dt>
|
2025-12-06 11:40:51 +00:00
|
|
|
|
<dd class="text-right">
|
|
|
|
|
|
{% if server.ssh_key_hint %}
|
|
|
|
|
|
<span class="font-mono">{{ server.ssh_key_hint }}</span>
|
|
|
|
|
|
{% else %}–{% endif %}
|
|
|
|
|
|
</dd>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
<p class="mt-2 text-[11px] text-slate-500">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
{{ t("note.ssh_keys") }}
|
2025-12-06 11:40:51 +00:00
|
|
|
|
</p>
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Notes -->
|
|
|
|
|
|
<section class="rounded-xl border border-slate-800 bg-slate-900/70 p-4 space-y-2 md:col-span-2">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
<h2 class="text-sm font-semibold text-slate-100">{{ t("section.notes") }}</h2>
|
2025-12-06 11:40:51 +00:00
|
|
|
|
<div class="text-xs text-slate-200 whitespace-pre-wrap">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
{% if server.notes %}{{ server.notes }}{% else %}<span class="text-slate-500">{{ t("notes.empty") }}</span>{% endif %}
|
2025-12-06 11:40:51 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
</section>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="flex justify-between items-center text-xs text-slate-500">
|
2025-12-06 13:58:46 +00:00
|
|
|
|
<a href="/" class="hover:text-slate-200 underline underline-offset-2">{{ t("back.overview") }}</a>
|
|
|
|
|
|
<span>{{ t("updated_at") }} {{ server.updated_at }}</span>
|
2025-12-06 11:40:51 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
{% endblock %}
|