{# Applied-changes diff: the fields a draft will write to Bugzilla.
Expects `draft` (Draft) in context. When `editable` is set (the will-apply
wrap), severity/priority render as override dropdowns; otherwise (the
watch-applied/"already applied" view) they stay read-only pills. #}
{% if draft.severity %}
{% if editable %}{% set _field = 'severity' %}{% set _current = draft.severity %}{% set _cls = 'sev' %}{% include "_level_select.html" %}
{% else %}{{ draft.severity }}{% endif %}
{% endif %}
{% if draft.priority %}
{% if editable %}{% set _field = 'priority' %}{% set _current = draft.priority %}{% set _cls = 'pri' %}{% include "_level_select.html" %}
{% else %}{{ draft.priority }}{% endif %}
{% endif %}
{% if draft.resolution %}resolve {{ draft.resolution }}{% if draft.resolution == "DUPLICATE" and draft.dupe_of %} of bug {{ draft.dupe_of }}{% endif %}{% endif %}
{% if draft.product or draft.component %}
move to {{ draft.product or 'Core' }} :: {{ draft.component or '?' }}
{% endif %}
{% if draft.status %}{{ draft.status }}{% endif %}
{% if reply_mode() and draft.assigned_to %}
·
assign to {{ draft.assigned_to }}
{% endif %}
{% if draft.blocks_add %}
·
+blocks
{% for b in draft.blocks_add %}{{ b }}{% if not loop.last %}, {% endif %}{% endfor %}
{% endif %}
{% if draft.regressed_by_add %}
·
+regressed by
{% for b in draft.regressed_by_add %}bug {{ b }}{% if not loop.last %}, {% endif %}{% endfor %}
{% endif %}
{% if draft.see_also_add %}
·
+see also
{% for b in draft.see_also_add %}bug {{ b }}{% if not loop.last %}, {% endif %}{% endfor %}
{% endif %}
{% if reply_mode() and draft.ni_targets %}
·
+ni {{ draft.ni_targets|join(', ') }}
{% endif %}
{% if reply_mode() and draft.cc_add %}
·
+cc {{ draft.cc_add|join(', ') }}
{% endif %}
{% if draft.keywords_add %}
·
+keyword {{ draft.keywords_add|join(', ') }}
{% endif %}