{% extends 'generic/_base.html' %} {% load helpers %} {% block title %}Checkmk changes: {{ object }}{% endblock %} {% block content %} {% if open_deployments %}
Open previews (not deployed or discarded yet{% if object.preview_hours %}; previews close by themselves after {{ object.preview_hours }} hours, plans waiting for approval stay{% endif %}):
    {% for d in open_deployments %}
  • #{{ d.pk }} {{ d.get_state_display }}, {{ d.get_scope_display|lower }}, by {{ d.user|default:"schedule" }}, {{ d.created|timesince }} ago
  • {% endfor %}
{% if own_previews %}
{% csrf_token %}
{% endif %}
{% endif %} {% if object_changes %}

{{ object_changes|length }} pending change{{ object_changes|length|pluralize }} of other objects tag groups, contact groups, rules; deployed with "all changes"

{% for c in object_changes %} {% endfor %}
KindIDActionDetails
{{ c.kind }}{{ c.id }}{% if c.action == 'create' %}create{% elif c.action == 'delete' %}delete{% else %}change{% endif %}{{ c.detail|placeholder }}
{% endif %}
{% csrf_token %}

{{ changes|length }} pending change{{ changes|length|pluralize }} NetBox compared with the last revision

{% for c in changes %} {% empty %} {% endfor %}
ObjectHostActionChangeAuthorChanged
{% if c.action != 'error' and c.action != 'orphaned' and not c.locked %}{% endif %} {% if c.obj %}{{ c.obj|linkify }}{% else %}{{ c.object_ref }}{% endif %} {{ c.host_name|placeholder }} {% if c.action == 'create' %}create {% elif c.action == 'change' %}change {% elif c.action == 'delete' %}delete {% elif c.action == 'orphan' %}mark orphaned {% elif c.action == 'release' %}hand back {% elif c.action == 'orphaned' %}orphaned {% else %}error{% endif %} {% if c.locked %}locked{% endif %} {% include 'netbox_checkmk_sync/inc/diff.html' with diff=c.diff %} {% for m in c.messages %}
{{ m }}
{% endfor %}
{{ c.authors|join:", "|placeholder }} {% if c.changed %}{{ c.changed|isodatetime:"minutes" }}{% else %}{{ ''|placeholder }}{% endif %}
Nothing pending. NetBox matches the last revision.
{% include "netbox_checkmk_sync/inc/busy.html" %} {% endblock %}