* fix: clean up shadowed name in document_referenced_by.html * fix: include refs to rfc's came_from_draft() * fix: include refs to draft's became_rfc() * fix: Count indirect refs by RFCs * refactor: break indirect ref_by counting to its own fn * fix: only count refs to pre-rfc draft, not post-draft rfc (and rename a method) * test: test referenced_by_rfcs methods The test_referenced_by_rfcs_as_rfc_or_draft() test fails because there's a bug! * test: actually, do double-count refs to rfc/draft Let's do include refs to an rfc and its precursor draft as separate refs. This almost surely indicates a data error because it would mean an rfc referenced both an rfc and the draft that it came from. That should never be allowed, so at least let some light fall on it if it happens. * chore: Add docstring to document_referenced_by view
87 lines
3.9 KiB
HTML
87 lines
3.9 KiB
HTML
{% extends "base.html" %}
|
|
{# Copyright The IETF Trust 2015-2023, All Rights Reserved #}
|
|
{% load origin static ietf_filters %}
|
|
{% block pagehead %}
|
|
<link rel="stylesheet" href="{% static "ietf/css/list.css" %}">
|
|
{% endblock %}
|
|
{% block title %}References to {{ name|prettystdname }}{% endblock %}
|
|
{% block content %}
|
|
{% origin %}
|
|
<h1>References to {{ name|prettystdname }}</h1>
|
|
<p class="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 scope="col" data-sort="document">Document</th>
|
|
<th scope="col" data-sort="title">Title</th>
|
|
<th scope="col" data-sort="status">Status</th>
|
|
<th scope="col" data-sort="type">Type</th>
|
|
<th scope="col" data-sort="downref">Downref</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for ref in refs %}
|
|
{% with ref.source.name as src_name %}
|
|
<tr>
|
|
<td>
|
|
<a href="{% url 'ietf.doc.views_doc.document_main' name=src_name %}">{{ src_name|prettystdname }}</a>
|
|
{% if ref.target.name != name %}
|
|
<br>
|
|
<span class="badge rounded-pill text-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' src_name %}"
|
|
rel="nofollow">
|
|
<i class="bi bi-arrow-left"></i>
|
|
References
|
|
</a>
|
|
<a class="btn btn-primary btn-sm"
|
|
href="{% url 'ietf.doc.views_doc.document_referenced_by' src_name %}"
|
|
rel="nofollow">
|
|
<i class="bi bi-arrow-right"></i>
|
|
Referenced by
|
|
</a>
|
|
</td>
|
|
<td>
|
|
{% if ref.source.type_id == "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 %}
|
|
{% endif %}
|
|
</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 %} |