[%# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
#%]
[% RETURN IF !bug %]
[% IF bottom_navigator == 1 %]
[% END %]
[% SET my_search = user.recent_search_for(bug) %]
[% IF my_search %]
[% SET last_bug_list = my_search.bug_list %]
[% SET this_bug_idx = lsearch(last_bug_list, bug.id) %]
[% terms.Bug %] List:
([% this_bug_idx + 1 %] of [% last_bug_list.size %])
First
Last
[% IF this_bug_idx > 0 %]
[% prev_bug = this_bug_idx - 1 %]
Prev
[% ELSE %]
Prev
[% END %]
[% IF this_bug_idx + 1 < last_bug_list.size %]
[% next_bug = this_bug_idx + 1 %]
Next
[% ELSE %]
Next
[% END %]
Show last search results
[% ELSE %]
[%# With no list, don't show link to search results %]
First
Last
Prev
Next
This [% terms.bug %] is not in your last
search results.
[% END %]