The Android Open Source Project | 9364f22 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 1 | [%# 1.0@bugzilla.org %] |
| 2 | [%# The contents of this file are subject to the Mozilla Public |
| 3 | # License Version 1.1 (the "License"); you may not use this file |
| 4 | # except in compliance with the License. You may obtain a copy of |
| 5 | # the License at http://www.mozilla.org/MPL/ |
| 6 | # |
| 7 | # Software distributed under the License is distributed on an "AS |
| 8 | # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or |
| 9 | # implied. See the License for the specific language governing |
| 10 | # rights and limitations under the License. |
| 11 | # |
| 12 | # The Original Code is the Bugzilla Bug Tracking System. |
| 13 | # |
| 14 | # The Initial Developer of the Original Code is Netscape Communications |
| 15 | # Corporation. Portions created by Netscape are |
| 16 | # Copyright (C) 1998 Netscape Communications Corporation. All |
| 17 | # Rights Reserved. |
| 18 | # |
| 19 | # Contributor(s): Gervase Markham <gerv@gerv.net> |
| 20 | #%] |
| 21 | |
| 22 | [% PROCESS global/variables.none.tmpl %] |
| 23 | |
| 24 | [% IF bug_list && bug_list.size > 0 %] |
| 25 | [% this_bug_idx = lsearch(bug_list, bug.bug_id) %] |
| 26 | <b>[% terms.Bug %] List:</b> |
| 27 | [% IF this_bug_idx != -1 %] |
| 28 | ([% this_bug_idx + 1 %] of [% bug_list.size %]) |
| 29 | [% END %] |
| 30 | |
| 31 | [% IF this_bug_idx != -1 %] |
| 32 | <a href="show_bug.cgi?id=[% bug_list.first %]">First</a> |
| 33 | <a href="show_bug.cgi?id=[% bug_list.last %]">Last</a> |
| 34 | [% END %] |
| 35 | |
| 36 | [% IF bug.bug_id %] |
| 37 | [% IF this_bug_idx != -1 %] |
| 38 | [% IF this_bug_idx > 0 %] |
| 39 | [% prev_bug = this_bug_idx - 1 %] |
| 40 | <a href="show_bug.cgi?id=[% bug_list.$prev_bug %]">Prev</a> |
| 41 | [% ELSE %] |
| 42 | <i><font color="#777777">Prev</font></i> |
| 43 | [% END %] |
| 44 | |
| 45 | [% IF this_bug_idx + 1 < bug_list.size %] |
| 46 | [% next_bug = this_bug_idx + 1 %] |
| 47 | <a href="show_bug.cgi?id=[% bug_list.$next_bug %]">Next</a> |
| 48 | [% ELSE %] |
| 49 | <i><font color="#777777">Next</font></i> |
| 50 | [% END %] |
| 51 | [% ELSE %] |
| 52 | (This [% terms.bug %] is not in your last search results) |
| 53 | [% END %] |
| 54 | [% ELSE %] |
| 55 | |
| 56 | [% END %] |
| 57 | |
| 58 | <a href="buglist.cgi?regetlastlist=1">Show last search results</a> |
| 59 | [% ELSE %] |
| 60 | [%# Either !bug_list || bug_list.size <= 0 %] |
| 61 | [%# With no list, don't show link to search results %] |
| 62 | <i><font color="#777777">First</font></i> |
| 63 | <i><font color="#777777">Last</font></i> |
| 64 | <i><font color="#777777">Prev</font></i> |
| 65 | <i><font color="#777777">Next</font></i> |
| 66 | |
| 67 | <i><font color="#777777">No search results available</font></i> |
| 68 | [% END %] |
| 69 | |
| 70 | <a href="query.cgi">Search page</a> |
| 71 | <a href="enter_bug.cgi">Enter new [% terms.bug %]</a> |