Skip to content

Commit bc53278

Browse files
committed
Made links to other versions available also for expired documents.
- Legacy-Id: 4626
1 parent 76594a4 commit bc53278

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

ietf/templates/idrfc/doc_tab_document_id.html

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@
4949

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

52+
<tr><td>Other versions:</td>
5253
{% ifequal doc.draft_status "Active" %}
53-
<tr><td>Other versions:</td><td>
54+
<td>
5455
<a href="http://www.ietf.org/id/{{doc.draft_name_and_revision}}.txt">plain text</a>,
5556
{% for ext in doc.file_types %}
5657
{% ifnotequal ext ".txt" %}
@@ -61,10 +62,24 @@
6162
<a href="http://tools.ietf.org/pdf/{{doc.draft_name_and_revision}}.pdf">pdf</a>,
6263
{% endif %}
6364
<a href="http://tools.ietf.org/html/{{doc.draft_name_and_revision}}">html</a>
64-
</td></tr>
65+
</td>
66+
{% else %}
67+
<td>
68+
(expired, archived):
69+
<a href="http://tools.ietf.org/id/{{doc.draft_name_and_revision}}.txt">plain text</a>,
70+
{% for ext in doc.file_types %}
71+
{% ifnotequal ext ".txt" %}
72+
<a href="http://tools.ietf.org/id/{{doc.draft_name_and_revision}}{{ext}}">{{ext|cut:"."}}</a>,
73+
{% endifnotequal %}
74+
{% endfor %}
75+
{% if not info.has_pdf %}
76+
<a href="http://tools.ietf.org/pdf/{{doc.draft_name_and_revision}}.pdf">pdf</a>,
77+
{% endif %}
78+
<a href="http://tools.ietf.org/html/{{doc.draft_name_and_revision}}">html</a>
79+
</td>
80+
</tr>
6581
{% endifequal %}
6682

67-
6883
<tr><td colspan='2'><hr size='1' noshade /></td></tr>
6984

7085
{% if stream_info.state %}

0 commit comments

Comments
 (0)