datatracker/ietf/templates/doc/search/search_results.html
Henrik Levkowetz e367c9e4ea Merged in [9855] from lars@netapp.com:
Fix bugs in adding/removing documents to personal ID list.
 - Legacy-Id: 9866
Note: SVN reference [9855] has been migrated to Git commit 0293061c3f
2015-07-23 08:54:46 +00:00

55 lines
1.4 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 %}
<table class="table table-condensed table-striped">
<thead>
<tr>
<th></th>
{% for h in meta.headers %}
{% if h.title != "Title" %}
<th class="{{ 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 %}
</tr>
</thead>
{% regroup docs by search_heading as grouped_docs %}
<tbody>
{% for doc_group in grouped_docs %}
<tr class="info">
<th></th>
<th colspan="{{ meta.headers|length|add:"-1" }}">
{{ doc_group.grouper|plural:doc_group.list }}
</th>
</tr>
{% for doc in doc_group.list %}
{% include "doc/search/search_result_row.html" %}
{% endfor %}
{% endfor %}
</tbody>
</table>
{% endif %}