fix: improve how status is displayed for old draft versions. Fixes #3974. (#4055)

This commit is contained in:
Robert Sparks 2022-06-03 11:45:01 -05:00 committed by GitHub
parent 13ae0738bf
commit 7dfb645678
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,9 +79,15 @@
</div>
{% endif %}
{% else %}
<span class="{% if doc.get_state_slug == 'active' %}text-success{% elif doc.get_state_slug == 'expired' %}text-danger{% endif %}">{{ doc.get_state }} Internet-Draft</span>
{% if submission %}({{ submission|safe }}){% endif %}
{% if resurrected_by %}- resurrect requested by {{ resurrected_by }}{% endif %}
{% if snapshot and doc.doc.get_state_slug == 'rfc' %}
<span>This is an older version of an Internet-Draft that was ultimately published as an RFC.</span>
{% elif snapshot and doc.rev != latest_rev %}
<span>This is an older version of an Internet-Draft whose latest revision is {{ doc.doc.get_state }}</span>
{% else %}
<span class="{% if doc.get_state_slug == 'active' %}text-success{% elif doc.get_state_slug == 'expired' %}text-danger{% endif %}">{% if snapshot and doc.rev == latest_rev %}{{ doc.doc.get_state }}{% else %}{{ doc.get_state }}{% endif %} Internet-Draft</span>
{% if submission %}({{ submission|safe }}){% endif %}
{% if resurrected_by %}- resurrect requested by {{ resurrected_by }}{% endif %}
{% endif %}
{% endif %}
</td>
</tr>