Fix problem with related documents on the /rg/ pages

- Legacy-Id: 7540
This commit is contained in:
Ole Laursen 2014-03-24 16:27:34 +00:00
parent ad357e0068
commit cb1e72ad21
3 changed files with 6 additions and 4 deletions

View file

@ -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 %}

View file

@ -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 %}

View file

@ -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)