Skip to content

Commit e4a64b9

Browse files
committed
Document page: show IESG telechat date; show state for RFCs (if applicable)
- Legacy-Id: 1949
1 parent 8ad2960 commit e4a64b9

3 files changed

Lines changed: 27 additions & 6 deletions

File tree

ietf/idrfc/idrfc_wrapper.py

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,11 @@ def to_json_helper(self):
388388
'has_iesg_ballot':self.has_iesg_ballot(),
389389
'has_active_iesg_ballot':self.has_active_iesg_ballot(),
390390
'ad_name':self.ad_name(),
391-
'intended_maturity_level':self.intended_maturity_level()}
391+
'intended_maturity_level':self.intended_maturity_level(),
392+
'telechat_date':self.telechat_date()}
393+
if result['telechat_date']:
394+
result['telechat_date'] = str(result['telechat_date'])
395+
result['telechat_returning_item'] = self.telechat_returning_item()
392396
if self.iesg_note():
393397
result['iesg_note'] = self.iesg_note()
394398
if self.has_iesg_ballot():
@@ -413,8 +417,17 @@ def intended_maturity_level(self):
413417
s = None
414418
return s
415419

416-
# intended_maturity_level(self):
417-
# telechat_date, on_telechat_agenda, returning_telechat_item
420+
def telechat_date(self):
421+
# return date only if it's on upcoming agenda
422+
if self._idinternal.agenda:
423+
return self._idinternal.telechat_date
424+
else:
425+
return None
426+
427+
def telechat_returning_item(self):
428+
# should be called only if telechat_date() returns non-None
429+
return bool(self._idinternal.returning_item)
430+
418431
# state_change_notice_to?
419432
# comment_log?
420433

@@ -603,7 +616,7 @@ def get_texts(self):
603616
return [p for p in self.position_list() if ('has_text' in p) and p['has_text']]
604617

605618
def to_json_helper(self):
606-
return {}
619+
return {"not_implemented_yet:":True}
607620

608621
def position_to_string(position):
609622
positions = {"yes":"Yes",

ietf/templates/idrfc/doc_main_id.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@
3939

4040
{% block doc_meta %}
4141
<table id="metatable">
42-
<tr><td style="width:18ex;">Document type:</td><td>{{ info.type|escape }}</td></tr>
42+
<tr><td style="width:18ex;">Document type:</td><td>{{ info.type|escape }}
43+
{% with doc.replaces as r %}{% if r %}<br />Replaces {% for rep in r %}<a href="/doc/{{rep}}/">{{rep}}</a> {% endfor %}{% endif %}{% endwith %}
44+
</td></tr>
4345
<tr><td>State:</td><td>
4446
{{ doc.friendly_state|safe }}
4547
{% if doc.rfc_editor_state %}<br />RFC Editor State: <a href="http://www.rfc-editor.org/queue2.html#{{doc.draft_name}}">{{ doc.rfc_editor_state|escape }}</a>{% endif %}
46-
{% with doc.replaces as r %}{% if r %}<br />Replaces {% for rep in r %}<a href="/doc/{{rep}}/">{{rep}}</a> {% endfor %}{% endif %}{% endwith %}
48+
{% if doc.in_ietf_process %}{% if doc.ietf_process.telechat_date %}<br/>On agenda of {{ doc.ietf_process.telechat_date }} IESG telechat {% if doc.ietf_process.telechat_returning_item %} (returning item){%endif%}{%endif%}{%endif%}
4749
</td></tr>
4850

4951
<tr><td>Intended status:</td><td>{% if doc.in_ietf_process %}{{ doc.ietf_process.intended_maturity_level|default:"-" }}{% else %}-{%endif%}</td></tr>

ietf/templates/idrfc/doc_main_rfc.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,13 @@
4545
{% if doc.obsoletes %}<br />Obsoletes {{ doc.obsoletes }}{%endif %}
4646
{% if doc.updates %}<br />Updates {{ doc.updates }}{%endif %}
4747
</td></tr>
48+
{% if doc.in_ietf_process %}
49+
<tr><td>State:</td><td>
50+
{{ doc.friendly_state|safe }}
51+
{% if doc.ietf_process.telechat_date %}<br/>On agenda of {{ doc.ietf_process.telechat_date }} IESG telechat {% if doc.ietf_process.telechat_returning_item %} (returning item){%endif%}{%endif%}
52+
</td></tr>{% endif %}
4853
<tr><td>Published:</td><td> {{ doc.publication_date|default:"(data missing)" }}</td></tr>
54+
4955
</table><!-- metatable -->
5056
{% endblock %}{# doc_meta #}
5157

0 commit comments

Comments
 (0)