{% extends "layouts/content.html" %} {% load django_tables2 %} {% block content %} {% if device.device_type.owners_only %}
{{ device.device_type.name }} is a hidden device type: Only owners of one or more devices of that type can see this page.
{% endif %} {% if template_mismatch %}
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 %} {% block device_heading %}{% endblock %}
Hostname
{{ device.hostname }} {% if user.is_superuser %} {% endif %}
Device-type
{{ device.device_type.name }}
Owner
{% if device.user %} {{ device.user.get_full_name|default:user.username }} {% elif device.group %} Group {{ device.group }} {% else %} ... {% endif %}
Restriction
{{ device.is_public|yesno:"Public,Private" }}
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_admin %}   {% endif %}
Worker
{{ device.worker_host.hostname }}
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.get_description|default:"..."|truncatewords_html:200|wordwrap:80|linebreaksbr }}
Version
{{ device.device_version|default:"..." }}
{% block content_columns %} {% endblock %} {% endblock %} {% block scripts %} {% endblock %}