Fix problem with related documents on the /rg/ pages
- Legacy-Id: 7540
This commit is contained in:
parent
ad357e0068
commit
cb1e72ad21
|
@ -36,7 +36,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
<div class="search-results">
|
||||
|
||||
{% if not docs %}
|
||||
<h2>No documents match your query.</h2>
|
||||
{% if not skip_no_matches_warning %}
|
||||
<h2>No documents match your query.</h2>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
|
||||
{% if meta.max %}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
{% include "doc/search/search_results.html" %}
|
||||
|
||||
{% include "doc/search/search_results.html" with docs=docs_related meta=meta_related %}
|
||||
{% include "doc/search/search_results.html" with docs=docs_related meta=meta_related skip_no_matches_warning=True %}
|
||||
|
||||
</div>
|
||||
{% endblock group_content %}
|
||||
|
|
|
@ -230,8 +230,8 @@ def search_for_group_documents(group):
|
|||
docs_related = []
|
||||
for d in raw_docs_related:
|
||||
parts = d.name.split("-", 2);
|
||||
# canonical form draft-<name|ietf>-wg-etc
|
||||
if len(parts) >= 3 and parts[1] != "ietf" and parts[2].startswith(group.acronym + "-"):
|
||||
# canonical form draft-<name|ietf|irtf>-wg-etc
|
||||
if len(parts) >= 3 and parts[1] not in ("ietf", "irtf") and parts[2].startswith(group.acronym + "-"):
|
||||
d.search_heading = "Related Internet-Draft"
|
||||
docs_related.append(d)
|
||||
|
||||
|
|
Loading…
Reference in a new issue