Skip to content

Commit d78d024

Browse files
refactor: improve readability of template logic in document_html.html
1 parent 0ab0994 commit d78d024

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ietf/templates/doc/document_html.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
title="Document changes"
1010
href="/feed/document-changes/{{ doc.name }}/">
1111
<meta name="description"
12-
content="{{ doc.title }} {% if doc.get_state_slug == "rfc" %}(RFC {{ rfc_number }}{% if published %}, {{ published.time|date:"F Y" }}{% endif %}{% if obsoleted_by %}; obsoleted by {{ obsoleted_by|join:", " }}{% endif %}){% else %}(Internet-Draft, {{ doc.time|date:"Y" }}){% endif %}">
12+
{% if doc.get_state_slug == "rfc" %}
13+
content="{{ doc.title }} (RFC {{ rfc_number }}{% if published %}, {{ published.time|date:"F Y" }}{% endif %}{% if obsoleted_by %}; obsoleted by {{ obsoleted_by|join:", " }}{% endif %})"
14+
{% else %}
15+
content="{{ doc.title }} (Internet-Draft, {{ doc.time|date:"Y" }})"
16+
{% endif %}>
1317
{% endblock %}
1418
{% block morecss %}
1519
.bgwhite { background-color: white; }

0 commit comments

Comments
 (0)