Fix for bug 176509: "(this bug is not in your list)" no longer appears in the…

Fix for bug 176509: "(this bug is not in your list)" no longer appears in the navigation bar when you aren't viewing a bug. Patch by Jody McIntyre <jodym@oeone.com> r=justdave
parent 0a8e6198
...@@ -29,22 +29,26 @@ ...@@ -29,22 +29,26 @@
<a href="show_bug.cgi?id=[% bug_list.first %]">First</a> <a href="show_bug.cgi?id=[% bug_list.first %]">First</a>
<a href="show_bug.cgi?id=[% bug_list.last %]">Last</a> <a href="show_bug.cgi?id=[% bug_list.last %]">Last</a>
[% IF this_bug_idx != -1 %] [% IF bug.bug_id %]
[% IF this_bug_idx > 0 %] [% IF this_bug_idx != -1 %]
[% prev_bug = this_bug_idx - 1 %] [% IF this_bug_idx > 0 %]
<a href="show_bug.cgi?id=[% bug_list.$prev_bug %]">Prev</a> [% prev_bug = this_bug_idx - 1 %]
[% ELSE %] <a href="show_bug.cgi?id=[% bug_list.$prev_bug %]">Prev</a>
<i><font color="#777777">Prev</font></i> [% ELSE %]
[% END %] <i><font color="#777777">Prev</font></i>
[% END %]
[% IF this_bug_idx + 1 < bug_list.size %]
[% next_bug = this_bug_idx + 1 %] [% IF this_bug_idx + 1 < bug_list.size %]
<a href="show_bug.cgi?id=[% bug_list.$next_bug %]">Next</a> [% next_bug = this_bug_idx + 1 %]
<a href="show_bug.cgi?id=[% bug_list.$next_bug %]">Next</a>
[% ELSE %]
<i><font color="#777777">Next</font></i>
[% END %]
[% ELSE %] [% ELSE %]
<i><font color="#777777">Next</font></i> (This bug is not in your list)
[% END %] [% END %]
[% ELSE %] [% ELSE %]
(This bug is not in your list) &nbsp;&nbsp;
[% END %] [% END %]
&nbsp;&nbsp;<a href="buglist.cgi?regetlastlist=1">Show list</a> &nbsp;&nbsp;<a href="buglist.cgi?regetlastlist=1">Show list</a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment