{% extends "layouts/content.html" %} {% load django_tables2 %} {% block styles %} {% endblock %} {% block content %}
Hostname
{{ worker.hostname }}
Description
{% if can_admin %}
{% csrf_token %}
{{ worker.get_description|default:"..." }}
{% else %}
{{ worker.get_description|default:"..." }}
{% endif %}
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_admin %}   {% 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 %} {% block scripts %} {% endblock %}