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
73 lines (65 loc) · 2.03 KB
/
search_results.html
File metadata and controls
73 lines (65 loc) · 2.03 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
65
66
67
68
69
70
71
72
73
{# Copyright The IETF Trust 2015, All Rights Reserved #}{% load origin %}{% origin %}
{% load ietf_filters %}
{% if not docs %}
{% if not skip_no_matches_warning %}
<div class="alert alert-info">No documents match your query.</div>
{% endif %}
{% else %}
{% if meta.max %}
<div class="alert alert-warning">
Too many documents match your query! Returning only a partial result.
</div>
{% endif %}
{% comment %}
Disable the js tablesort stuff for a truncate result, per Henrik.
{% endcomment %}
<table class="table table-condensed table-striped {% if not meta.max %}tablesorter{% endif %}">
<thead>
<tr>
<th class="sorter-false"></th>
{% for h in meta.headers %}
{% if h.title != "Title" %}
<th data-header="{{ h.key }}">
{% if "sort_url" in h %}
<a href="{{ h.sort_url }}">{{ h.title }}
{% if h.sorted and meta.max %}
{% if h.direction == "asc" %}
<span class="fa fa-caret-up"></span>
{% else %}
<span class="fa fa-caret-down"></span>
{% endif %}
{% endif %}
</a>
{% else %}
{{ h.title }}
{% endif %}
</th>
{% endif %}
{% endfor %}
{% if color_row_positions %}
<th class="sorter-false"></th>
{% endif %}
</tr>
</thead>
{% regroup docs by search_heading as grouped_docs %}
{% for doc_group in grouped_docs %}
<tbody>
<tr class="info">
<th></th>
{% if color_row_positions %}
<th colspan="{{ meta.headers|length }}">
{% else %}
<th 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 %}
{% endfor %}
</tbody>
</table>
{% endif %}