{% extends 'generic/object.html' %} {% load helpers %} {% block subtitle %}
{{ object.created|isodatetime:"minutes" }} by {{ object.user|placeholder }}{% if object.description %} ยท {{ object.description }}{% endif %}
{% endblock %} {% block control-buttons %} {% if can_rollback %}
{% csrf_token %} {% if is_superuser %} {% endif %}
{% endif %} {% endblock %} {% block content %}

Revision {{ object.number }}

Instance{{ object.instance|linkify }}
Deployment{{ object.deployment|linkify|placeholder }}
Description{{ object.description|placeholder }}
Approved by{{ object.approved_by|placeholder }}
Plan hash{{ object.plan_hash|truncatechars:20 }}
Hosts after this revision{{ object.host_count }}
Git commit{% if object.git_commit %}{{ object.git_commit|truncatechars:12 }}{% elif object.git_error %}not pushed yet: {{ object.git_error }}{% else %}โ€”{% endif %}
{% if locks %}

Rollback locks {% for target, deployment in lock_rollbacks %}rollback to r{{ target }}{% if deployment %} in deployment #{{ deployment.pk }}{% endif %}{% if not forloop.last %}; {% endif %}{% endfor %}

{% for lock, url in locks %} {% endfor %}
HostState
{% if url %}{{ lock.host_name|default:lock.object_ref }}{% else %}{{ lock.host_name|default:lock.object_ref }}{% endif %} {% if lock.released %}released {{ lock.released|isodatetime:"minutes" }}{% if lock.released_by %} by {{ lock.released_by }}{% endif %}: {{ lock.release_comment }}{% else %}active{% endif %}
{% endif %}
{% csrf_token %}

Hosts changed in this revision

{% if can_rollback %}{% endif %} {% for h in hosts %} {% if can_rollback %}{% endif %} {% endfor %}
HostObjectActionBefore โ†’ after
{{ h.row.host_name }} {{ h.row.object_ref }} {{ h.row.action }} {% include 'netbox_checkmk_sync/inc/diff.html' with diff=h.diff %}
{% if can_rollback %} {% endif %}

Compare with another revision the whole instance, host by host

{% if can_rollback and compare.other_pk %}
{% csrf_token %}
{% endif %}
{% for row in compare.rows %} {% empty %} {% endfor %}
HostObjectr{{ compare.older }} โ†’ r{{ compare.newer }}
{{ row.host }}{{ row.ref }}{% include 'netbox_checkmk_sync/inc/diff.html' with diff=row.diff %}
No differences.
{% include "netbox_checkmk_sync/inc/busy.html" %} {% endblock %}