datatracker/ietf/templates/doc/search/search_results.html
Lars Eggert 820d406e33 Commit r10578 broke search result table display due to the added column. Fix
this.  (Also update vnu.jar. Unrelated, but wasn't careful when committing.)
Commit ready for merge.
 - Legacy-Id: 10685
2016-01-14 10:55:03 +00:00

68 lines
1.8 KiB
HTML

{# 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 %}<span class="fa fa-caret-down"></span>{% 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 }}
</th>
</tr>
</tbody>
<tbody>
{% for doc in doc_group.list %}
{% include "doc/search/search_result_row.html" %}
{% endfor %}
{% endfor %}
</tbody>
</table>
{% endif %}