Refactored weight code to split the work over Search, ResultURL, and Click models...
[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 <!-- BREADCRUMBS -->
7 {% block breadcrumbs %}
8         <div id="breadcrumbs">
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         </div>
14 {% endblock %}
15
16 <!-- CONTENT -->
17 {% block content %}
18         <div class="container-grid delete-confirmation">
19                 {% for search in queryset %}
20                 <h1>{{ search.string }}</h1>
21                 <div class="module">
22                         <h2>{% blocktrans %}Results{% endblocktrans %}</h2>{% comment %}For the favored results, add a class?{% endcomment %}
23                         {% for result in search.get_weighted_results %}
24                         <div class="row cell-2">
25                                 <div class="cell span-4">{{ result.url }}</div>
26                                 <div class="cell span-flexible">{{ result.weight }}</div>
27                         </div>
28                         {% endfor %}
29                 </div>
30                 {% endfor %}
31         </div>
32 {% endblock %}