refactor: improve readability of template logic in document_html.html
This commit is contained in:
parent
0ab0994c9d
commit
d78d0249f1
|
@ -9,7 +9,11 @@
|
|||
title="Document changes"
|
||||
href="/feed/document-changes/{{ doc.name }}/">
|
||||
<meta name="description"
|
||||
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 %}">
|
||||
{% if doc.get_state_slug == "rfc" %}
|
||||
content="{{ doc.title }} (RFC {{ rfc_number }}{% if published %}, {{ published.time|date:"F Y" }}{% endif %}{% if obsoleted_by %}; obsoleted by {{ obsoleted_by|join:", " }}{% endif %})"
|
||||
{% else %}
|
||||
content="{{ doc.title }} (Internet-Draft, {{ doc.time|date:"Y" }})"
|
||||
{% endif %}>
|
||||
{% endblock %}
|
||||
{% block morecss %}
|
||||
.bgwhite { background-color: white; }
|
||||
|
|
Loading…
Reference in a new issue