Skip to content

Commit 2da0274

Browse files
committed
Show RFC publication date as YYYY-MM (since we don't currently have the day)
- Legacy-Id: 2044
1 parent 774f4dc commit 2da0274

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/templates/idrfc/doc_main_rfc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
{% if doc.updates %}<br />Updates {{ doc.updates|urlize_ietf_docs }}{%endif %}
4646
{% if doc.draft_name %}<br/ >Was <a href="/doc/{{ doc.draft_name}}/">{{doc.draft_name}}</a>{% endif %}
4747
</td></tr>
48-
<tr><td>Published:</td><td> {{ doc.publication_date|default:"(data missing)" }}</td></tr>
48+
<tr><td>Published:</td><td> {{ doc.publication_date|date:"Y-m"|default:"(data missing)" }}</td></tr>
4949
{% if doc.in_ietf_process %}
5050
<tr class="post-rfc"><td colspan="2">* This information refers to IESG processing after the RFC was initially published</td></tr>
5151
<tr class="post-rfc"><td>State:</td><td>

ietf/templates/idrfc/search_result_row.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
{% if doc.id %}<br />(<a href="/doc/{{doc.id.draft_name}}/">{{doc.id.draft_name}}</a>){%endif%}
4141
{% else %}<a href="/doc/{{doc.id.draft_name}}/">{{doc.id.draft_name_and_revision}}</a>{% endif %}</td>
4242
<td class="title">{{ doc.title|escape }}</td>
43-
<td class="date">{{ doc.publication_date }}
43+
<td class="date">{% if not doc.rfc %}{{ doc.publication_date }}{% else %}{{ doc.publication_date|date:"Y-m" }}{% endif %}
4444
{% if doc.publication_date|timesince_days|less_than:"14" %}<br/><span style="padding:0 2px;background:yellow;font-size:85%;">{% if not doc.rfc%}<a href="http://tools.ietf.org/rfcdiff?url2={{doc.id.draft_name_and_revision}}">new</a>{%else%}new{%endif%}</span>{%endif%}
4545
{% if doc.id and doc.id.expected_expiration_date and doc.id.expected_expiration_date|timesince_days|greater_than:"-14" %}<br/><span style="padding:0 2px;font-size:85%;background:yellow;">expires soon</span>{%endif%}
4646
</td>

0 commit comments

Comments
 (0)