Skip to content

Commit 188c619

Browse files
committed
Display draft-iesg state rather than doc.friendly_state as IESG state,
also show a notice that the IESG state refers to post-RFC processing if it does, like the old separate RFC page did - Legacy-Id: 5288
1 parent b8724d8 commit 188c619

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

ietf/doc/models.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,10 @@ def ballot_open(self, ballot_type_slug):
138138
def active_ballot(self):
139139
"""Returns the most recently created ballot if it isn't closed."""
140140
ballot = self.latest_event(BallotDocEvent, type="created_ballot")
141-
open = self.ballot_open(ballot.ballot_type.slug) if ballot else False
142-
return ballot if open else None
141+
if ballot and self.ballot_open(ballot.ballot_type.slug):
142+
return ballot
143+
else:
144+
return None
143145

144146
class Meta:
145147
abstract = True

ietf/idrfc/views_doc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ def document_main(request, name, rev=None):
350350
rfc_editor_state=doc.get_state("draft-rfceditor"),
351351
iana_review_state=doc.get_state("draft-iana-review"),
352352
iana_action_state=doc.get_state("draft-iana-action"),
353+
started_iesg_process=doc.latest_event(type="started_iesg_process"),
353354
shepherd_writeup=shepherd_writeup,
354355
search_archive=search_archive,
355356
actions=actions,

ietf/templates/idrfc/document_draft.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,17 @@
143143

144144
<tr><td colspan='2'><hr size='1' noshade /></td></tr>
145145

146+
{% if published and started_iesg_process and published.time < started_iesg_process.time %}
147+
<tr>
148+
<td colspan='2' style="font-style:italic">This information refers to IESG processing after the RFC was initially published:</td>
149+
</tr>
150+
{% endif %}
151+
146152
<tr>
147153
<td><a href="/idtracker/help/state/">IESG State</a>:</td>
148154
<td>
149155
<a {% if iesg_state and can_edit %}class="editlink" href="{% url doc_change_state name=doc.name %}"{% endif %}>
150-
{{ doc.friendly_state|safe }}</a>
156+
{{ iesg_state|default:"I-D Exists" }}</a>
151157

152158
{% if iana_review_state %}
153159
<div>IANA Review State:

0 commit comments

Comments
 (0)