Only show defer actions for I-Ds
- Legacy-Id: 4270
This commit is contained in:
parent
725ff12306
commit
4f4a47bffa
|
@ -251,7 +251,7 @@ def document_ballot_content(request, doc, ballot_id, editable=True):
|
|||
raise Http404()
|
||||
|
||||
deferred = None
|
||||
if doc.get_state_slug("%s-iesg" % doc.type) == "defer":
|
||||
if doc.type_id == "draft" and doc.get_state_slug("draft-iesg") == "defer":
|
||||
# FIXME: fragile
|
||||
deferred = doc.latest_event(type="changed_document", desc__startswith="State changed to <b>IESG Evaluation - Defer</b>")
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
<div class="action"><a href="{% url doc_edit_position name=doc.name,ballot_id=ballot.pk %}">Edit position</a></div>
|
||||
{% endif %}
|
||||
|
||||
{% if doc.type_id == "draft" %}
|
||||
<div class="action">
|
||||
{% if deferred %}
|
||||
<a href="{% url doc_undefer_ballot name=doc.name %}">Undefer ballot</a>
|
||||
|
@ -15,6 +16,7 @@
|
|||
<a href="{% url doc_defer_ballot name=doc.name %}">Defer ballot</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue