{% extends "layouts/content.html" %} {% load django_tables2 %} {% block styles %} {% endblock %} {% block content %}
Hostname
{{ worker.hostname }} {% if user.is_superuser %}{% endif %}
Description
{{ worker.get_description|default:"..." }}
State
{% if worker.state == worker.STATE_ONLINE %}
{{ worker.get_state_display }}
{% else %}
{% if worker.health == worker.HEALTH_ACTIVE %}
 {% endif %}{{ worker.get_state_display }}
{% endif %}
Health
{% if worker.health == worker.HEALTH_ACTIVE %} {% elif worker.health == worker.HEALTH_MAINTENANCE %} {% else %} {% endif %} {{ worker.get_health_display }} {% if can_change %}   {% endif %}
Devices
{{ worker.device_set.all.count }}
Retired devices
{{ worker.retired_devices_count }}

Devices Attached

{% render_table worker_device_table %}

Transitions

{% render_table worker_log_table %} {% endblock %}