Merge branch 'release' into gilbert
[philo.git] / philo / contrib / sobol / templates / admin / sobol / search / results.html
1 {% extends "admin/base_site.html" %}
2 {% load i18n %}
3
4 {% block extrastyle %}<style type="text/css">.favored{font-weight:bold;}</style>{% endblock %}
5
6 {% block breadcrumbs %}
7 <div class="breadcrumbs">
8         {% if queryset|length > 1 %}
9         <a href="../../">{% trans "Home" %}</a> &rsaquo;
10         <a href="../">{{ app_label|capfirst }}</a> &rsaquo;
11         <a href="./">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo;
12         {% trans 'Search results for multiple objects' %}
13         {% else %}
14         <a href="../../../../">{% trans "Home" %}</a> &rsaquo;
15         <a href="../../../">{{ app_label|capfirst }}</a> &rsaquo; 
16         <a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo;
17         <a href="../">{{ queryset|first|truncatewords:"18" }}</a> &rsaquo;
18         {% trans 'Results' %}
19         {% endif %}
20 </div>
21 {% endblock %}
22
23
24 {% block content %}
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 %}
29                                 <table>
30                                         <thead>
31                                                 <tr>
32                                                         <th>Weight</th>
33                                                         <th>URL</th>
34                                                 </tr>
35                                         </thead>
36                                         <tbody>
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>
41                                                 </tr>
42                                                 {% endfor %}
43                                         </tbody>
44                                 </table>
45                         </fieldset>
46                 {% endfor %}
47 {% endblock %}