{% extends 'generic/object.html' %} {% load i18n %} {% load plugins %} {% load form_helpers %} {% block extra_controls %} {% if can_submit %}
{% endif %} {% if can_return_to_draft %} {% endif %} {% if can_abandon %} {% endif %} {% if can_reopen %} {% endif %} {% endblock extra_controls %} {% block content %} {% if conflicts %}| {% trans "Reference" %} | {{ object.ref|placeholder }} |
|---|---|
| {% trans "Title" %} | {{ object.title }} |
| {% trans "Branch" %} | {% if object.branch %}{{ object.branch|linkify }} {% else %} {{ object.branch_name }} {% trans "Deleted" %} {% endif %} |
| {% trans "Status" %} |
{% badge object.get_status_display bg_color=object.get_status_color %}
{% if object.is_approved and not object.is_ready_to_merge %}
{% trans "Blocked" %}
{% trans "Approved by reviewers, but not yet mergeable." %}
{{ object.merge_blocked_reason }}
{% endif %}
|
| {% trans "Priority" %} | {% badge object.get_priority_display bg_color=object.get_priority_color %} |
| {% trans "Requester" %} | {{ object.requester }} |
| {% trans "Description" %} | {{ object.description|placeholder }} |
| {% trans "Change window" %} | {% if object.has_window %} {{ object.scheduled_start|placeholder }} → {{ object.scheduled_end|placeholder }} {% with state=object.window_state %} {% if state == 'open' %}{% trans "Open" %} {% elif state == 'early' %}{% trans "Not yet open" %} {% elif state == 'closed' %}{% trans "Closed" %} {% endif %} {% endwith %} {% else %} {% trans "Any time" %} {% endif %} |
| {% trans "Merge automatically" %} | {% checkmark object.auto_merge %} {% if window_warning %}{% trans "Window too short" %}{% endif %} |
|
{{ rule.rule.policy }} / {{ rule.rule.name }}
{% if rule.required %}
{% include 'netbox_change_control/inc/rule_reviewers.html' with rule=rule.rule %}
{% else %}
{% trans "The pre-merge checks are the only gate." %}
{% endif %}
|
{% if not rule.required %} {% trans "No approval required" %} {% elif rule.satisfied %} {{ rule.count }} / {{ rule.required }} {% else %} {{ rule.count }} / {{ rule.required }} {% endif %} |
|---|---|
| {% trans "No policy rules apply yet. Submit the request for review." %} | |
| {{ binding.policy|linkify }} | {% for name in binding.matched_object_types %}{{ name }} {% endfor %} |
| {% trans "No policies attached yet. Submit the request for review to match them." %} |