{% 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 can_admin and template_mismatch %}
Configuration Error: template-mismatch.

The '{{ device.device_type }}' device type has no matching jinja2 template. Pipeline (V2) jobs requesting this device type will not be able to start until a template is available on the master.

{% endif %} {% block device_heading %}{% endblock %}
Hostname
{{ device.hostname }}
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 %}
Status
{% if transition %}{% endif %} {% if device.status == device.OFFLINE or device.status == device.OFFLINING %} {{ device.get_status_display }} {% elif device.status == device.IDLE or device.status == device.RUNNING or device.status == device.RESERVED %} {{ device.get_status_display }} {% else %} {{ device.get_status_display }} {% endif %} {% if transition %}{% endif %}
Health
{% if device.health_status == device.HEALTH_PASS %}
Pass
{% elif device.health_status == device.HEALTH_FAIL %}
Fail
{% else %}
{{ device.get_health_status_display }}
{% 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:"..." }}
{% if show_maintenance or cancel_looping or show_online or show_forcehealthcheck or edit_description or show_pool %}
{% if show_maintenance %}
{% endif %} {% if cancel_looping and can_admin %}
{% endif %} {% if show_online %}
{% if device.status == device.OFFLINE %}
{% endif %} {% endif %} {% if show_forcehealthcheck %}
{% csrf_token %}
{% endif %}
{% if user.is_authenticated and user.is_superuser %} {% endif %} {% if edit_description %}
{% endif %} {% if show_restrict %}
{% endif %} {% if show_pool %}
{% endif %}
{% endif %} {% block content_columns %} {% endblock %}

Status transitions

{% render_table transition_table %} {% endblock %} {% block scripts %} {% endblock %}