forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch_results.html
More file actions
64 lines (64 loc) · 2.58 KB
/
Copy pathsearch_results.html
File metadata and controls
64 lines (64 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% origin %}
{% load ietf_filters static %}
{% if not docs %}
{% if not skip_no_matches_warning %}<div class="alert alert-info my-3">No documents match your query.</div>{% endif %}
{% endif %}
{% if meta.max %}
<div class="alert alert-warning my-3">
Too many documents match your query! Returning only a partial result ({{ meta.max }} matches).
</div>
{% endif %}
{% if start_table %}
<table class="table table-sm table-striped tablesorter">
<thead>
<tr>
<th scope="col"></th>
{% for h in meta.headers %}
{% if h.title != "Title" %}
<th scope="col" data-sort="{{ h.key }}"
{% if h.title|slugify == "ipr" or h.title|slugify == "ad-shepherd" %}
class="d-none d-sm-table-cell"
{% endif %}>
{% if "sort_url" in h %}
<a href="{{ h.sort_url }}">
{{ h.title|cut:" " }}
{% if h.sorted and meta.max %}
{% if h.direction == "asc" %}
<i class="bi bi-caret-up"></i>
{% else %}
<i class="bi bi-caret-down"></i>
{% endif %}
{% endif %}
</a>
{% else %}
{{ h.title|cut:" " }}
{% endif %}
</th>
{% endif %}
{% endfor %}
</tr>
</thead>
{% endif %}
{% regroup docs by search_heading as grouped_docs %}
{% for doc_group in grouped_docs %}
<tbody>
<tr class="table-info">
<td></td>
{% if color_ad_position %}
<th scope="col" colspan="{{ meta.headers|length }}">
{% else %}
<th scope="col" colspan="{{ meta.headers|length|add:"-1" }}">
{% endif %}
{{ doc_group.grouper|plural:doc_group.list }} ({{ doc_group.list|length }} {{"hit"|plural:doc_group.list }})
</th>
</tr>
</tbody>
<tbody>
{% for doc in doc_group.list %}
{% include "doc/search/search_result_row.html" %}
{% endfor %}
</tbody>
{% endfor %}
{% if end_table %}</table>{% endif %}