{# Note: rows from the hosts.html table are split into this template to handle the conditional difference between /api/v1/hosts and /api/v1/latesthosts #} {% load datetime_formatting %} {% load static_url %} {% load truncatepath %} {% url 'ui:host' host.id as host_url %} {% if host.ok %} {{ host.ok }} {% endif %} {% if host.changed %} {{ host.changed }} {% endif %} {% if host.failed or host.unreachable %} {{ host.failed |add:host.unreachable }} {% endif %} {% if host.skipped %} {{ host.skipped }} {% endif %} {{ host.updated | format_date }} {{ host.playbook.duration | format_duration }} {{ host.name | truncatechars:50 }} {% if host.playbook.name is not None %} {% if not static_generation %} {{ host.playbook.name | truncatechars:50 }} {% else %} {{ host.playbook.name | truncatechars:50 }} {% endif %} {% else %} {% if not static_generation %} {{ host.playbook.path | truncatepath:50 }} {% else %} {{ host.playbook.path | truncatepath:50 }} {% endif %} {% endif %} {% include "partials/host_facts_snippets.html" with host=host %}