{% extends 'generic/object.html' %}
{% load helpers %}
{% load render_table from django_tables2 %}
{% block extra_controls %}
{% if can_sync %}
{% endif %}
{% endblock %}
{% block content %}
{% if tls_off %}
TLS certificate verification is turned off for endpoint {{ object.endpoint }}.
{% endif %}
| Name | {{ object.name }} |
| Endpoint | {{ object.endpoint }} |
| Organization ID | {{ object.organization_id }} |
| Enabled | {% checkmark object.enabled %} |
| New devices | {{ object.site|linkify }} / {{ object.role|linkify }} |
| Schedule | {% if object.sync_interval %}Every {{ object.sync_interval }} min{% if next_job %}, next {{ next_job.scheduled|isodatetime }}{% endif %}{% else %}Off{% endif %} |
| SSH base port | {{ object.ssh_base_port }} |
| "Open in Percepxion" | {% checkmark object.percepxion_link %} |
{% if object.backoff_until %}| Login backoff until | {{ object.backoff_until|isodatetime }} |
{% endif %}
{% include 'inc/panels/tags.html' %}
{% if last_job %}
| Job | {{ last_job|linkify }} {% badge last_job.get_status_display bg_color=last_job.get_status_color %} |
| Started | {{ last_job.started|isodatetime }} |
| Completed | {{ last_job.completed|isodatetime|placeholder }} |
{% if last_job.error %}| Error | {{ last_job.error }} |
{% endif %}
{% with d=last_job.data %}{% if d.devices %}
| Devices | {{ d.devices.created }} created, {{ d.devices.updated }} updated, {{ d.devices.unchanged }} unchanged, {{ d.devices.pending }} pending |
| Ports | {{ d.ports.updated }} updated, {{ d.ports.unchanged }} unchanged |
| Facts | {{ d.facts.updated }} updated |
{% endif %}{% endwith %}
{% else %}
No runs yet.
{% endif %}
{% render_table findings_table 'inc/table.html' %}
{% endblock %}