Skip to content

Commit 4f4a47b

Browse files
committed
Only show defer actions for I-Ds
- Legacy-Id: 4270
1 parent 725ff12 commit 4f4a47b

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

ietf/idrfc/views_doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def document_ballot_content(request, doc, ballot_id, editable=True):
251251
raise Http404()
252252

253253
deferred = None
254-
if doc.get_state_slug("%s-iesg" % doc.type) == "defer":
254+
if doc.type_id == "draft" and doc.get_state_slug("draft-iesg") == "defer":
255255
# FIXME: fragile
256256
deferred = doc.latest_event(type="changed_document", desc__startswith="State changed to <b>IESG Evaluation - Defer</b>")
257257

ietf/templates/idrfc/document_ballot_content.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<div class="action"><a href="{% url doc_edit_position name=doc.name,ballot_id=ballot.pk %}">Edit position</a></div>
88
{% endif %}
99

10+
{% if doc.type_id == "draft" %}
1011
<div class="action">
1112
{% if deferred %}
1213
<a href="{% url doc_undefer_ballot name=doc.name %}">Undefer ballot</a>
@@ -15,6 +16,7 @@
1516
<a href="{% url doc_defer_ballot name=doc.name %}">Defer ballot</a>
1617
{% endif %}
1718
</div>
19+
{% endif %}
1820

1921
</div>
2022
{% endif %}

0 commit comments

Comments
 (0)