From bc5327842c18f282775d46601c33507c7b17e8c1 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Fri, 20 Jul 2012 13:40:29 +0000 Subject: [PATCH] Made links to other versions available also for expired documents. - Legacy-Id: 4626 --- ietf/templates/idrfc/doc_tab_document_id.html | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/ietf/templates/idrfc/doc_tab_document_id.html b/ietf/templates/idrfc/doc_tab_document_id.html index 1997ff3d5..02b519613 100644 --- a/ietf/templates/idrfc/doc_tab_document_id.html +++ b/ietf/templates/idrfc/doc_tab_document_id.html @@ -49,8 +49,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Intended RFC status:{% if doc.in_ietf_process %}{{ doc.ietf_process.intended_maturity_level|default:"-" }}{% else %}-{%endif%} +Other versions: {% ifequal doc.draft_status "Active" %} -Other versions: + plain text, {% for ext in doc.file_types %} {% ifnotequal ext ".txt" %} @@ -61,10 +62,24 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. pdf, {% endif %} html - + +{% else %} + +(expired, archived): +plain text, +{% for ext in doc.file_types %} +{% ifnotequal ext ".txt" %} +{{ext|cut:"."}}, +{% endifnotequal %} +{% endfor %} +{% if not info.has_pdf %} +pdf, +{% endif %} +html + + {% endifequal %} -
{% if stream_info.state %}