From fe0892564f8c579d80ed2f34b3c90593ece9a4de Mon Sep 17 00:00:00 2001 From: "justdave%syndicomm.com" <> Date: Sat, 2 Nov 2002 00:40:33 +0000 Subject: 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 r=justdave --- template/en/default/bug/navigate.html.tmpl | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/template/en/default/bug/navigate.html.tmpl b/template/en/default/bug/navigate.html.tmpl index 621acc1bf..c8636e098 100644 --- a/template/en/default/bug/navigate.html.tmpl +++ b/template/en/default/bug/navigate.html.tmpl @@ -29,22 +29,26 @@ First Last - [% IF this_bug_idx != -1 %] - [% IF this_bug_idx > 0 %] - [% prev_bug = this_bug_idx - 1 %] - Prev - [% ELSE %] - Prev - [% END %] - - [% IF this_bug_idx + 1 < bug_list.size %] - [% next_bug = this_bug_idx + 1 %] - Next + [% IF bug.bug_id %] + [% IF this_bug_idx != -1 %] + [% IF this_bug_idx > 0 %] + [% prev_bug = this_bug_idx - 1 %] + Prev + [% ELSE %] + Prev + [% END %] + + [% IF this_bug_idx + 1 < bug_list.size %] + [% next_bug = this_bug_idx + 1 %] + Next + [% ELSE %] + Next + [% END %] [% ELSE %] - Next + (This bug is not in your list) [% END %] [% ELSE %] - (This bug is not in your list) +    [% END %]   Show list -- cgit v1.2.3-24-g4f1b