{% extends "base.html" %} {% load i18n %} {% block content %} {% if not cluster_settings.enabled %}
| {% trans 'Worker' %} | {% trans 'Status' %} | {% trans 'Synchronization' %} | {% trans 'Services' %} | {% trans 'Version' %} | {% trans 'Actions' %} |
|---|---|---|---|---|---|
|
{{ worker.name }}
{{ worker.hostname|default:worker.ip_address|default:'-' }} {% if worker.ip_lock %}{% endif %} {% if worker.city or worker.country %} · {{ worker.city|default:'' }}{% if worker.city and worker.country %}, {% endif %}{{ worker.country|default:'' }}{% endif %} {% if distributed %} {% for instance in worker.hosted_instances %} wg{{ instance.instance_id }}{% if instance.name %} · {{ instance.name }}{% endif %} {% empty %} {% trans 'No WireGuard instances' %} {% endfor %} {% endif %} |
{% if not worker.enabled %}
{% trans 'Disabled' %}
{% elif worker.error_status %}
{% trans 'Refused' %}
{% elif worker.is_online %}
{% trans 'Online' %}
{% else %}
{% trans 'Offline' %}
{% endif %}
{% if worker.status %}{{ worker.status.last_seen|date:"SHORT_DATETIME_FORMAT" }}{% else %}{% trans 'Never' %}{% endif %} |
{% if not worker.enabled %}
-
{% elif not worker.operational %}
{% trans 'Unknown' %}
{% elif worker.sync_state.state == 'synced' %}
{% trans 'Synchronized' %}
{% elif worker.sync_state.state == 'error' %}
{% trans 'Error' %}
{{ worker.unsynced_sections|join:', ' }} {% else %} {% trans 'Pending' %} {{ worker.unsynced_sections|join:', ' }} {% endif %} |
{% for service, state in worker.services %}
{% if worker.operational %}
{{ service }}
{% else %}
{{ service }}
{% endif %}
{% empty %}
-
{% endfor %}
{% if worker.operational and worker.warnings.certificate_issues %}
{% trans 'Certificates unavailable or expiring soon' %} {% endif %} |
{% if worker.status %} v{{ worker.status.worker_version }} {% else %} - {% endif %} |
{% trans 'No workers configured' %}
{% trans 'Add Worker' %}