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" %}