adds a "See all # matching add-ons" link to the combined page

fixes Bug 681017 - A search for the string "library" lists/shows 5 in the Combined view, but the full 7 in the Library view
This commit is contained in:
Sean McArthur 2011-08-29 17:09:12 -07:00
Родитель 1db2f274e7
Коммит c7fe3bde58
2 изменённых файлов: 15 добавлений и 1 удалений

Просмотреть файл

@ -1,15 +1,22 @@
{% load base_helpers %}
<section id="SearchResults">
{% if addons %}
<h2 class="UI_Heading">Add-on Results ({{ addon_total }})</h2>
{% for package in addons %}
{% include "_package_result.html" %}
{% endfor %}
{% if addon_total > 5 %}
<p class="see-more"><a href="?{% querystring type='a' %}">See all {{ addon_total}} matching add-ons &rarr;</a></p>
{% endif %}
{% endif %}
{% if libraries %}
<h2 class="UI_Heading">Library Results ({{ library_total }})</h2>
{% for package in libraries %}
{% include "_package_result.html" %}
{% endfor %}
{% endfor %}
{% if library_total > 5 %}
<p class="see-more"><a href="?{% querystring type='l' %}">See all {{ library_total }} matching libraries &rarr;</a></p>
{% endif %}
{% endif %}
{% if not addons and not libraries %}

Просмотреть файл

@ -158,6 +158,13 @@ body {
opacity:1;
}
#SearchResults .see-more {
margin:10px 0;
}
#SearchResults .see-more a {
color:#478CDE;
}
#SearchResults .UI_Pagination {
margin-top:40px;
}