{% extends "base.html" %} {% block content %}

{{ t("server_list.title") }}

{{ t("server_list.subtitle") }}

{% if not can_encrypt %} {{ t("warning.no_encryption") }} {% endif %}
{% if stats %}
{{ t("stats.total") }} {{ stats.total_servers }} {{ t("stats.active") }}
{{ t("stats.costs") }} {{ "%.2f"|format(stats.monthly_total) }} {% if stats.monthly_currency %} {{ stats.monthly_currency }}{% endif %} {{ t("stats.per_month") }}{% if stats.mixed_currencies %} {{ t("stats.mixed_currencies") }}{% endif %}
{{ t("stats.expiring_soon") }} {{ stats.expiring_soon }} {{ t("stats.expiring_soon_hint") }}
{{ t("stats.expired") }} {{ stats.expired }} {{ t("stats.expired_hint") }}
{% endif %} {% if servers %}
{% for s in servers %} {% endfor %}
{{ t("table.name") }} {{ t("table.provider") }} {{ t("table.type") }} {{ t("table.location") }} {{ t("table.ipv4") }} {{ t("table.costs") }} {{ t("table.action") }}
{{ s.name }} {% if s.hostname %}
{{ s.hostname }}
{% endif %}
{% if s.is_expired %} {{ t("status.expired") }} {% elif s.is_expiring_soon %} {{ t("status.expiring") }} {% endif %}
{{ s.provider }} {{ s.type }} {% if s.location %}{{ s.location }}{% else %}{% endif %} {% if s.ipv4 %}{{ s.ipv4 }}{% else %}{% endif %} {% if s.price %} {{ "%.2f"|format(s.price) }} {{ s.currency }} / {{ t("price.month") if s.billing_period == "monthly" else t("price.year") }} {% else %} {% endif %} {{ t("server_detail.edit") }}
{% else %}
{{ t("server_list.empty") }}
{% endif %}
{% endblock %}