{% 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 %}
{% endif %}
{% endblock %}
{% block content %}
| 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 %}
| Host | State |
{% for lock, url in locks %}
| {% 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 %} |
{% endfor %}
{% endif %}
{% if can_rollback and compare.other_pk %}
{% endif %}
| Host | Object | r{{ compare.older }} โ r{{ compare.newer }} |
{% for row in compare.rows %}
| {{ row.host }} | {{ row.ref }} | {% include 'netbox_checkmk_sync/inc/diff.html' with diff=row.diff %} |
{% empty %}
| No differences. |
{% endfor %}
{% include "netbox_checkmk_sync/inc/busy.html" %}
{% endblock %}