Skip to content

Commit ffb4581

Browse files
committed
Fixed regression in display of IESG state; added back substate information. Fixes issue ietf-tools#1117.
- Legacy-Id: 6081
1 parent d85e0ae commit ffb4581

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

ietf/doc/views_doc.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ def document_main(request, name, rev=None):
136136
split_content = not ( request.GET.get('include_text') or request.COOKIES.get("full_draft", "") == "on" )
137137

138138
iesg_state = doc.get_state("draft-iesg")
139+
iesg_substate = doc.tags.filter(slug__in=IESG_SUBSTATE_TAGS)
140+
iesg_state_summary = iesg_state.name
141+
if iesg_substate:
142+
iesg_state_summary = iesg_state_summary + "::"+"::".join(tag.name for tag in iesg_substate)
139143

140144
can_edit = has_role(request.user, ("Area Director", "Secretariat"))
141145
stream_slugs = StreamName.objects.values_list("slug", flat=True)
@@ -353,6 +357,7 @@ def document_main(request, name, rev=None):
353357
milestones=doc.groupmilestone_set.filter(state="active"),
354358
consensus=consensus,
355359
iesg_state=iesg_state,
360+
iesg_state_summary=iesg_state_summary,
356361
rfc_editor_state=doc.get_state("draft-rfceditor"),
357362
iana_review_state=doc.get_state("draft-iana-review"),
358363
iana_action_state=doc.get_state("draft-iana-action"),

ietf/templates/doc/document_draft.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
<td><a href="/idtracker/help/state/">IESG State</a>:</td>
152152
<td>
153153
<a {% if iesg_state and can_edit %}class="editlink" href="{% url doc_change_state name=doc.name %}"{% endif %}>
154-
{{ iesg_state|default:"I-D Exists" }}</a>
154+
{{ iesg_state_summary|default:"I-D Exists" }}</a>
155155

156156
{% if iana_review_state %}
157157
<div>IANA Review State:

0 commit comments

Comments
 (0)