Skip to content

Commit 2315135

Browse files
committed
For documents in the IETF stream, display consensus in the IESG portion of the page. For documents in other streams, disply consensis in the Stream portion of the page. Fixes ietf-tools#1560.
- Legacy-Id: 10632
1 parent 884291f commit 2315135

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

ietf/doc/views_draft.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,6 @@ def change_intention(request, name):
451451

452452
de = doc.latest_event(ConsensusDocEvent, type="changed_consensus")
453453
prev_consensus = de and de.consensus
454-
print prev_consensus
455-
print doc.intended_std_level_id
456454
if not prev_consensus and doc.intended_std_level_id in ("std", "ds", "ps", "bcp"):
457455
ce = ConsensusDocEvent(doc=doc, by=login, type="changed_consensus")
458456
ce.consensus = True

ietf/templates/doc/document_draft.html

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@
223223
{% endif %}
224224
</tr>
225225

226-
{% if consensus %}
226+
{% if consensus and not stream_state_type_slug == "draft-stream-ietf" %}
227227
<tr>
228228
<th></th>
229229
<th>Consensus</th>
@@ -298,6 +298,21 @@
298298
</td>
299299
</tr>
300300

301+
{% if consensus and stream_state_type_slug == "draft-stream-ietf" %}
302+
<tr>
303+
<th></th>
304+
<th>Consensus</th>
305+
<td class="edit">
306+
{% if can_edit or can_edit_stream_info %}
307+
<a class="btn btn-default btn-xs" href="{% url "doc_edit_consensus" name=doc.name %}">Edit</a>
308+
{% endif %}
309+
</td>
310+
<td>
311+
<span title="Whether the document is the result of a community consensus process as defined in RFC 5741">{{ consensus }}</span>
312+
</td>
313+
</tr>
314+
{% endif %}
315+
301316
<tr>
302317
<th></th>
303318
<th>Telechat date</th>

0 commit comments

Comments
 (0)