1 {% extends "admin/base_site.html" %}
4 {% block extrastyle %}<style type="text/css">.favored{font-weight:bold;}</style>{% endblock %}
6 {% block breadcrumbs %}
7 <div class="breadcrumbs">
8 {% if queryset|length > 1 %}
9 <a href="../../">{% trans "Home" %}</a> ›
10 <a href="../">{{ app_label|capfirst }}</a> ›
11 <a href="./">{{ opts.verbose_name_plural|capfirst }}</a> ›
12 {% trans 'Search results for multiple objects' %}
14 <a href="../../../../">{% trans "Home" %}</a> ›
15 <a href="../../../">{{ app_label|capfirst }}</a> ›
16 <a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> ›
17 <a href="../">{{ queryset|first|truncatewords:"18" }}</a> ›
25 {% for search in queryset %}
26 {% if not forloop.first and not forloop.last %}<h1>{{ search.string }}</h1>{% endif %}
27 <fieldset class="module">
28 <h2>{% blocktrans %}Results{% endblocktrans %}</h2>{% comment %}For the favored results, add a class?{% endcomment %}
37 {% for result in search.get_weighted_results %}
38 <tr{% if result in search.favored_results %} class="favored"{% endif %}>
39 <td>{{ result.weight }}</td>
40 <td>{{ result.url }}</td>