Merge branch 'sobol-templates-hotfix' into release
[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                         <fieldset class="module">
27                                 <h2>{{ search.string }}</h2>
28                                 <table>
29                                         <thead>
30                                                 <tr>
31                                                         <th>Weight</th>
32                                                         <th>URL</th>
33                                                 </tr>
34                                         </thead>
35                                         <tbody>
36                                                 {% for result in search.get_weighted_results %}
37                                                 <tr{% if result in search.favored_results %} class="favored"{% endif %}>
38                                                         <td>{{ result.weight }}</td>
39                                                         <td>{{ result.url }}</td>
40                                                 </tr>
41                                                 {% endfor %}
42                                         </tbody>
43                                 </table>
44                         </fieldset>
45                 {% endfor %}
46 {% endblock %}