From 390ff04722af72720999cf4488b3b77bfe1bd096 Mon Sep 17 00:00:00 2001 From: "Peter E. Yee" Date: Sun, 4 Aug 2019 23:55:15 +0000 Subject: [PATCH] Improved so that new draft diffs (from the working group drafts page) work correctly for both -00 drafts and later revisions. Fixes issue #2697. Commit ready for merge. - Legacy-Id: 16614 --- ietf/templates/doc/search/search_result_row.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ietf/templates/doc/search/search_result_row.html b/ietf/templates/doc/search/search_result_row.html index 773bcbaaa..b326c9cdc 100644 --- a/ietf/templates/doc/search/search_result_row.html +++ b/ietf/templates/doc/search/search_result_row.html @@ -61,8 +61,10 @@ {% if doc.latest_revision_date|timesince_days|new_enough:request and doc.get_state_slug != "rfc" %} - {% if doc.replaces %} - {% elif doc.rev != "00" %}{% endif %} + + {% if doc.rev != "00" %} + {% elif doc.replaces %}{% endif %} + {% endif %} {% if doc.get_state_slug == "rfc" %}{{ doc.latest_revision_date|date:"Y-m" }}{% else %}{{ doc.latest_revision_date|date:"Y-m-d" }}{% endif %} {% if doc.latest_revision_date|timesince_days|new_enough:request and doc.get_state_slug != "rfc" %}