datatracker/ietf/templates/doc/document_referenced_by.html
Lars Eggert 53089a94f6 And more fixes.
- Legacy-Id: 19902
2022-02-01 07:47:25 +00:00

88 lines
3.9 KiB
HTML

{# bs5ok #}
{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin static ietf_filters %}
{% block pagehead %}
<link rel="stylesheet" href="{% static "ietf/css/list.css" %}">
{% endblock %}
{% block title %}References to {{ alias_name }}{% endblock %}
{% block content %}
{% origin %}
<h1>References to {{ alias_name }}</h1>
<p class="my-3 alert alert-info my-3">
These dependencies are extracted using heuristics looking for strings with particular prefixes. Notably, this means that references to I-Ds by title only are not reflected here. If it's really important, please inspect the documents' references sections directly.
</p>
<p>
Showing RFCs and active Internet-Drafts, sorted by
<a href="{% url 'ietf.doc.views_help.relationship_help' subset='reference' %}">reference type</a>,
then document name.
</p>
{% if numdocs %}
<div class="alert alert-warning my-3">
<p>
Showing only the first 250 of {{ numdocs }} documents.
</p>
<p>
<a class="btn btn-primary" href="?full=True">Show all</a>
</p>
</div>
{% endif %}
<table class="table table-sm table-striped tablesorter">
<thead>
<tr>
<th data-sort="document">Document</th>
<th data-sort="title">Title</th>
<th data-sort="status">Status</th>
<th data-sort="type">Type</th>
<th data-sort="downref">Downref</th>
</tr>
</thead>
<tbody>
{% for ref in refs %}
{% with ref.source.canonical_name as name %}
<tr>
<td>
<a href="{% url 'ietf.doc.views_doc.document_main' name=name %}">{{ name|prettystdname }}</a>
{% if ref.target.name != alias_name %}
<br>
<span class="badge bg-info">As {{ ref.target.name }}</span>
{% endif %}
</td>
<td>
<b>{{ ref.source.title }}</b>
<br>
<a class="btn btn-primary btn-sm"
href="{% url 'ietf.doc.views_doc.document_references' name %}"
rel="nofollow">
<span class="bi bi-arrow-left"></span>
References
</a>
<a class="btn btn-primary btn-sm"
href="{% url 'ietf.doc.views_doc.document_referenced_by' name %}"
rel="nofollow">
<span class="bi bi-arrow-right"></span>
Referenced by
</a>
</td>
<td>
{% ifequal ref.source.get_state.slug 'rfc' %}
{% with ref.source.std_level as lvl %}
{% if lvl %}{{ lvl }}{% endif %}
{% endwith %}
{% else %}
{% with ref.source.intended_std_level as lvl %}
{% if lvl %}{{ lvl }}{% endif %}
{% endwith %}
{% endifequal %}
</td>
<td>{{ ref.relationship.name }}</td>
<td>{{ ref.is_downref|default:'' }}</td>
</tr>
{% endwith %}
{% endfor %}
</tbody>
</table>
{% endblock %}
{% block js %}
<script src="{% static "ietf/js/list.js" %}"></script>
{% endblock %}