Merge branch 'master' of git://github.com/melinath/philo
[philo.git] / contrib / sobol / templates / admin / sobol / search / grappelli_results.html
1 {% extends "admin/base_site.html" %}
2
3 <!-- LOADING -->
4 {% load i18n %}
5
6 <!-- EXTRASTYLES -->
7 {% block extrastyle %}<style type="text/css">.favored{font-weight:bold;}</style>{% endblock %}
8
9 <!-- BREADCRUMBS -->
10 {% block breadcrumbs %}
11         <div id="breadcrumbs">
12                 {% if queryset|length > 1 %}
13                 <a href="../../">{% trans "Home" %}</a> &rsaquo;
14                 <a href="../">{{ app_label|capfirst }}</a> &rsaquo;
15                 <a href="./">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo;
16                 {% trans 'Search results for multiple objects' %}
17                 {% else %}
18                 <a href="../../../../">{% trans "Home" %}</a> &rsaquo;
19                 <a href="../../../">{{ app_label|capfirst }}</a> &rsaquo;
20                 <a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo;
21                 <a href="../">{{ queryset|first|truncatewords:"18" }}</a> &rsaquo;
22                 {% trans 'Results' %}
23                 {% endif %}
24         </div>
25 {% endblock %}
26
27 <!-- CONTENT -->
28 {% block content %}
29         <div class="container-grid delete-confirmation">
30                 {% for search in queryset %}
31                 <div class="group tabular">
32                         <h2>{{ search_string }}</h2>
33                         <div class="module table">
34                                 <div class="module thead">
35                                         <div class="tr">
36                                                 <div class="th">Weight</div>
37                                                 <div class="th">URL</div>
38                                         </div>
39                                 </div>
40                                 <div class="module tbody">
41                                         {% for result in search.get_weighted_results %}
42                                         <div class="tr{% if result in search.get_favored_results %} favored{% endif %}">
43                                                 <div class="td">{{ result.weight }}</div>
44                                                 <div class="td">{{ result.url }}</div>
45                                         </div>
46                                         {% endfor %}
47                                 </div>
48                         </div>
49                 </div>
50                 {% endfor %}
51         </div>
52 {% endblock %}