aboutsummaryrefslogtreecommitdiffstats
path: root/template/en/default/list
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2011-03-02 00:43:43 -0800
committerMax Kanat-Alexander <mkanat@bugzilla.org>2011-03-02 00:43:43 -0800
commitb8566e4d8f5bc2df8b90c857a99c0f5c0beaebd8 (patch)
tree4b3198d06883cce87cbc07a1ab9eae489aee92c1 /template/en/default/list
parente81b9d51399792035e10c2cd6d1b32f75879c3ec (diff)
downloadbugs-b8566e4d8f5bc2df8b90c857a99c0f5c0beaebd8.tar
bugs-b8566e4d8f5bc2df8b90c857a99c0f5c0beaebd8.tar.gz
bugs-b8566e4d8f5bc2df8b90c857a99c0f5c0beaebd8.tar.bz2
bugs-b8566e4d8f5bc2df8b90c857a99c0f5c0beaebd8.tar.xz
bugs-b8566e4d8f5bc2df8b90c857a99c0f5c0beaebd8.zip
Bug 632718: Only return 500 search results unless the user specifically
requests to see more. r=dkl, a=mkanat
Diffstat (limited to 'template/en/default/list')
-rw-r--r--template/en/default/list/list.html.tmpl36
1 files changed, 24 insertions, 12 deletions
diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl
index a669aecb9..15184d06b 100644
--- a/template/en/default/list/list.html.tmpl
+++ b/template/en/default/list/list.html.tmpl
@@ -110,9 +110,7 @@
[%############################################################################%]
[% IF bugs.size > 9 %]
- <span class="bz_result_count">
- [% bugs.size %] [%+ terms.bugs %] found.
- </span>
+ [% PROCESS num_results %]
[% END %]
[%############################################################################%]
@@ -134,15 +132,7 @@
[%# Succeeding Status Line #%]
[%############################################################################%]
-<span class="bz_result_count">
- [% IF bugs.size == 0 %]
- <span class="zero_results">[% terms.zeroSearchResults %].</span>
- [% ELSIF bugs.size == 1 %]
- One [% terms.bug %] found.
- [% ELSE %]
- [% bugs.size %] [%+ terms.bugs %] found.
- [% END %]
-</span>
+[% PROCESS num_results %]
[% IF bugs.size == 0 %]
<ul class="zero_result_links">
@@ -274,6 +264,10 @@
[% PROCESS global/footer.html.tmpl %]
+[%##########%]
+[%# Blocks #%]
+[%##########%]
+
[% BLOCK edit_search_url %]
[% editqueryname = searchname OR defaultsavename OR '' %]
query.cgi?[% urlquerypart FILTER html %]
@@ -291,3 +285,21 @@
in the "[% one_product.name FILTER html %]" product
[% END %]</a>
[% END %]
+
+[% BLOCK num_results %]
+ <span class="bz_result_count">
+ [% IF bugs.size == 0 %]
+ <span class="zero_results">[% terms.zeroSearchResults %].</span>
+ [% ELSIF default_limited AND bugs.size >= Param('default_search_limit') %]
+ This result was limited to [% Param('default_search_limit') FILTER html %]
+ [%+ terms.bugs %].
+ <a href="buglist.cgi?[% urlquerypart FILTER html %]
+ [%- "&order=$qorder" FILTER html IF order %]&limit=0">See
+ all search results for this query</a>.
+ [% ELSIF bugs.size == 1 %]
+ One [% terms.bug %] found.
+ [% ELSE %]
+ [% bugs.size %] [%+ terms.bugs %] found.
+ [% END %]
+ </span>
+[% END %]