RFCartography/rfcartography/templates/rfc.html
2023-01-03 14:42:54 +01:00

225 lines
3.5 KiB
HTML

{% extends "base.html" %}
{%- block head_title %}
{{ rfc.docID() }} :: RFCartography
{% endblock head_title %}
{%- block main %}
<h1>
{{ rfc.docID() }}
</h1>
<dl>
<dt>
Title
</dt>
<dd>
{{ rfc.title }}
</dd>
{% for ref in rfc.is_also %}
{% if loop.first %}
<dt>
a.k.a.
</dt>
<dd>
{% endif %}
<a href="{{ url }}{{ ref.docID() }}">
{{ ref.docID() }}
</a>{% if not loop.last %},
{% else %}
</dd>
{% endif %}
{% endfor %}
<dt>
Authors
</dt>
<dd>
{% for author in rfc.authors %}
{{ author.title }} {{ author.name }} {% if not author.organization == "" %}({{ author.organization }}){% endif %}{% if not loop.last %}<br />{% endif %}
{% endfor %}
</dd>
{% if date != "" %}
<dt>
Publication Date
</dt>
<dd>
{{ date }}
</dd>
{% endif %}
<dt>
Available as
</dt>
<dd>
{% for format in rfc.format %}
{{ format.name }}{% if not loop.last %}, {% endif %}
{% endfor %}
</dd>
{% if rfc.page_count is not none %}
<dt>
Pages
</dt>
<dd>
{{ rfc.page_count }}
</dd>
{% endif %}
{% for kw in rfc.keywords %}
{% if loop.first %}
<dt>
Keywords
</dt>
<dd>
{% endif %}
{{ kw }}{% if not loop.last %}, {% endif %}
{% if loop.last %}
</dd>
{% endif %}
{% endfor %}
{% for p in rfc.abstract %}
{% if loop.first %}
<dt>
Abstract
</dt>
<dd>
{% endif %}
<p>
{{ p }}
</p>
{% if loop.last %}
</dd>
{% endif %}
{% endfor %}
{% if rfc.draft != "" %}
<dt>
Draft
</dt>
<dd>
{{ rfc.draft }}
</dd>
{% endif %}
{% if rfc.notes != "" %}
<dt>
Notes
</dt>
<dd>
{{ rfc.notes }}
</dd>
{% endif %}
{% for ref in rfc.obsoletes %}
{% if loop.first %}
<dt>
Obsoletes
</dt>
<dd>
{% endif %}
<a href="{{ url }}{{ ref.docID() }}">
{{ ref.docID() }}
</a>{% if not loop.last %},
{% else %}
</dd>
{% endif %}
{% endfor %}
{% for ref in rfc.obsoleted_by %}
{% if loop.first %}
<dt>
Obsoleted by
</dt>
<dd>
{% endif %}
<a href="{{ url }}{{ ref.docID() }}">
{{ ref.docID() }}
</a>{% if not loop.last %},
{% else %}
</dd>
{% endif %}
{% endfor %}
{% for ref in rfc.updates %}
{% if loop.first %}
<dt>
Updates
</dt>
<dd>
{% endif %}
<a href="{{ url }}{{ ref.docID() }}">
{{ ref.docID() }}
</a>{% if not loop.last %},
{% else %}
</dd>
{% endif %}
{% endfor %}
{% for ref in rfc.updated_by %}
{% if loop.first %}
<dt>
Updated by
</dt>
<dd>
{% endif %}
<a href="{{ url }}{{ ref.docID() }}">
{{ ref.docID() }}
</a>{% if not loop.last %},
{% else %}
</dd>
{% endif %}
{% endfor %}
{% for ref in rfc.see_also %}
{% if loop.first %}
<dt>
See also
</dt>
<dd>
{% endif %}
<a href="{{ url }}{{ ref.docID() }}">
{{ ref.docID() }}
</a>{% if not loop.last %},
{% else %}
</dd>
{% endif %}
{% endfor %}
<dt>
Status
</dt>
<dd>
{{ rfc.current_status.name }} {% if rfc.current_status != rfc.pub_status %}(originally published as {{ rfc.pub_status.name }}){% endif %}
</dd>
{% if rfc.stream is not none %}
<dt>
Stream
</dt>
<dd>
{{ rfc.stream.name }}
</dd>
{% endif %}
{% if rfc.area != "" %}
<dt>
Area
</dt>
<dd>
{{ rfc.area }}
</dd>
{% endif %}
{% if rfc.wg_acronym != "" %}
<dt>
Working Group
</dt>
<dd>
{{ rfc.wg_acronym }}
</dd>
{% endif %}
{% if rfc.doi != "" %}
<dt>
DOI
</dt>
<dd>
{{ rfc.doi }}
</dd>
{% endif %}
</dl>
<br />
<a href="https://www.rfc-editor.org/info/{{ rfc.docID() | lower }}">
RFC-Editor
</a>
{% if rfc.errata_url != "" %} |
<a href="{{ rfc.errata_url }}">
Errata
</a>
{% endif %}
{% endblock main %}