{% extends "layouts/content.html" %} {% load django_tables2 %} {% load static %} {% block content %} {% if template_mismatch and device.health != device.HEALTH_RETIRED %}
Configuration Error: missing or invalid template.

Jobs requesting this device type ({{ device.device_type }}) will not be able to start until a template is available on the master.

{% endif %} {% if not device.worker_host and device.health != device.HEALTH_RETIRED %}
No worker is associated with this device: no jobs can be scheduled, started or canceled.
{% endif %} {% if user.is_staff and not device.get_health_check and not device.device_type.disable_health_check and device.health != device.HEALTH_RETIRED %}
The device has no health check job Consider adding a health check definition.
{% endif %} {% block device_heading %}{% endblock %}
Hostname
{{ device.hostname }} {% if user.is_superuser %} {% endif %}
Device-type
{{ device.device_type.name }}
Tags
{% if device.tags.all %}
{% for tag in device.tags.all %} {% if tag.description %} {{ tag.name }}{% if not forloop.last %},{% endif %} {% else %} {{ tag.name }}{% if not forloop.last %},{% endif %} {% endif %} {% endfor %}
{% else %}
...
{% endif %}
State
{{ device.get_simple_state_display }}
Health
{% if device.health == device.HEALTH_GOOD %} {% elif device.health == device.HEALTH_UNKNOWN or device.health == device.HEALTH_LOOPING %} {% elif device.health == device.HEALTH_MAINTENANCE %} {% else %} {% endif %} {{ device.get_health_display }} {% if can_change %}   {% endif %}
Worker
{% if device.worker_host %}
{% if device.worker_host.state == device.worker_host.STATE_ONLINE and device.worker_host.health == device.worker_host.HEALTH_ACTIVE %} {{ device.worker_host.hostname }} {% elif device.worker_host.health == device.worker_host.HEALTH_ACTIVE %} {{ device.worker_host.hostname }} {% else %} {{ device.worker_host.hostname }} {% endif %}
{% else %}
...
{% endif %}
Device dictionary
Physical access
{% if device.physical_owner %} {{ device.physical_owner.get_full_name|default:device.physical_owner.username }} {% elif device.physical_group %} Group {{ device.physical_group }} {% else %} ... {% endif %}
Description
{{ device.description|default:"..."|truncatewords_html:200|wordwrap:80|linebreaksbr }}
Version
{{ device.device_version|default:"..." }}
{% block content_columns %} {% endblock %} {% endblock %} {% block scripts %} {% endblock %}