diff --git a/ietf/templates/doc/document_conflict_review.html b/ietf/templates/doc/document_conflict_review.html index 00300e780..8a2361832 100644 --- a/ietf/templates/doc/document_conflict_review.html +++ b/ietf/templates/doc/document_conflict_review.html @@ -28,7 +28,7 @@ - {% if conflictdoc.get_state_slug == 'rfc' %}{{ conflictdoc.name|prettystdname }}{% else %}{{ conflictdoc.name }}-{{ conflictdoc.rev }}{% endif %} + {% if conflictdoc.type_id == 'rfc' %}{{ conflictdoc.name|prettystdname }}{% else %}{{ conflictdoc.name }}-{{ conflictdoc.rev }}{% endif %} {{ conflictdoc.stream }} stream {% if snapshot %}Snapshot{% endif %} diff --git a/ietf/templates/doc/document_draft.html b/ietf/templates/doc/document_draft.html index 15e3a8047..c099e1075 100644 --- a/ietf/templates/doc/document_draft.html +++ b/ietf/templates/doc/document_draft.html @@ -13,11 +13,11 @@ title="Document changes" href="/feed/document-changes/{{ name }}/"> + content="{{ doc.title }} {% if doc.type_id == 'rfc' and not snapshot %}(RFC {{ rfc_number }}{% if published %}, {{ doc.pub_date|date:'F Y' }}{% endif %}{% if obsoleted_by %}; obsoleted by {% for rel in obsoleted_by %}{{ rel.source.name|prettystdname}}{% if not forloop.last%}, {% endif %}{% endfor %}{% endif %}){% endif %}"> {% endblock %} {% block morecss %}.inline { display: inline; }{% endblock %} {% block title %} - {% if doc.get_state_slug == "rfc" and not snapshot %} + {% if doc.type_id == "rfc" and not snapshot %} RFC {{ rfc_number }} - {{ doc.title }} {% else %} {{ name }}-{{ doc.rev }} - {{ doc.title }} @@ -31,7 +31,7 @@ {% if doc.rev != latest_rev %}
The information below is for an old version of the document.
{% else %} - {% if doc.get_state_slug == "rfc" and snapshot %} + {% if doc.type_id == "rfc" and snapshot %}
The information below is for an old version of the document that is already published as an RFC.
@@ -764,10 +764,10 @@ {% endfor %} {% endif %} - {% if doc.get_state_slug == "active" or doc.get_state_slug == "rfc" %} + {% if doc.get_state_slug == "active" or doc.type_id == "rfc" %}
- {% if doc.get_state_slug == "rfc" and not snapshot %} + {% if doc.type_id == "rfc" and not snapshot %} RFC {{ rfc_number }} {% else %} {{ name }}-{{ doc.rev }} diff --git a/ietf/templates/doc/document_format_buttons.html b/ietf/templates/doc/document_format_buttons.html index 2c79c9264..043b9a797 100644 --- a/ietf/templates/doc/document_format_buttons.html +++ b/ietf/templates/doc/document_format_buttons.html @@ -4,11 +4,11 @@ {% if label != skip_format %} diff --git a/ietf/templates/doc/document_html.html b/ietf/templates/doc/document_html.html index 0d68f0448..627067940 100644 --- a/ietf/templates/doc/document_html.html +++ b/ietf/templates/doc/document_html.html @@ -33,7 +33,7 @@ {% endif %} - {% if not snapshot and doc.get_state_slug == "rfc" %} + {% if not snapshot and doc.type_id == "rfc" %} RFC {{ doc.rfc_number }} {% else %} {{ doc.name }}-{{ doc.rev }} @@ -175,7 +175,7 @@
Datatracker

- {% if not snapshot and doc.get_state_slug == "rfc" %} + {% if not snapshot and doc.type_id == "rfc" %} RFC {{ doc.rfc_number }} {% else %} {{ doc.name }}-{{ doc.rev }} diff --git a/ietf/templates/doc/document_info.html b/ietf/templates/doc/document_info.html index 33d89a60d..1dc7d9ca5 100644 --- a/ietf/templates/doc/document_info.html +++ b/ietf/templates/doc/document_info.html @@ -31,7 +31,7 @@ {% if document_html %}View errata{% else %}Errata{% endif %} {% endif %} - {% if document_html and doc.get_state_slug == "rfc" and not snapshot %} + {% if document_html and doc.type_id == "rfc" and not snapshot %} {% endif %} {% else %} - {% if snapshot and doc.doc.get_state_slug == 'rfc' %} + {% if snapshot and doc.doc.type_id == 'rfc' %} This is an older version of an Internet-Draft that was ultimately published as {{doc.doc.name|prettystdname}}.

{% elif snapshot and doc.rev != latest_rev %} This is an older version of an Internet-Draft whose latest revision state is "{{ doc.doc.get_state }}".
diff --git a/ietf/templates/doc/opengraph.html b/ietf/templates/doc/opengraph.html index f4527966a..4fe39b620 100644 --- a/ietf/templates/doc/opengraph.html +++ b/ietf/templates/doc/opengraph.html @@ -3,7 +3,7 @@ {% load static %} {% load ietf_filters %} {% origin %} - + diff --git a/ietf/templates/doc/revisions_list.html b/ietf/templates/doc/revisions_list.html index 3a3042c62..61f104bf4 100644 --- a/ietf/templates/doc/revisions_list.html +++ b/ietf/templates/doc/revisions_list.html @@ -17,14 +17,14 @@ {% endif %} {% endfor %} - {% if doc.get_state_slug == 'rfc' %} + {% if doc.type_id == 'rfc' %}
  • RFC {{ doc.rfc_number }}
  • - {% elif doc.doc.get_state_slug == 'rfc' %} + {% elif doc.doc.type_id == 'rfc' %}
  • diff --git a/ietf/templates/doc/search/status_columns.html b/ietf/templates/doc/search/status_columns.html index a126cc1a2..5f8dd826f 100644 --- a/ietf/templates/doc/search/status_columns.html +++ b/ietf/templates/doc/search/status_columns.html @@ -4,7 +4,7 @@ {% load ietf_filters ballot_icon person_filters %}
    {% ballot_icon doc %}
    - {% if not doc.get_state_slug == "rfc" %} + {% if not doc.type_id == "rfc" %} {% if '::' in doc.friendly_state %} {{ doc.friendly_state|safe }} {% else %}