зеркало из https://github.com/mozilla/FlightDeck.git
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:
Родитель
1db2f274e7
Коммит
c7fe3bde58
|
@ -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 →</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 →</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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче