summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2002-11-02 01:40:33 +0100
committerjustdave%syndicomm.com <>2002-11-02 01:40:33 +0100
commitfe0892564f8c579d80ed2f34b3c90593ece9a4de (patch)
tree73838937277e986a899c1a415c8557f9c289dac0
parent0a8e619864d322a4bfdf31611c8a2faff9b3cf1c (diff)
downloadbugzilla-fe0892564f8c579d80ed2f34b3c90593ece9a4de.tar.gz
bugzilla-fe0892564f8c579d80ed2f34b3c90593ece9a4de.tar.xz
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
-rw-r--r--template/en/default/bug/navigate.html.tmpl30
1 files 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 @@
<a href="show_bug.cgi?id=[% bug_list.first %]">First</a>
<a href="show_bug.cgi?id=[% bug_list.last %]">Last</a>
- [% IF this_bug_idx != -1 %]
- [% IF this_bug_idx > 0 %]
- [% prev_bug = this_bug_idx - 1 %]
- <a href="show_bug.cgi?id=[% bug_list.$prev_bug %]">Prev</a>
- [% ELSE %]
- <i><font color="#777777">Prev</font></i>
- [% END %]
-
- [% IF this_bug_idx + 1 < bug_list.size %]
- [% next_bug = this_bug_idx + 1 %]
- <a href="show_bug.cgi?id=[% bug_list.$next_bug %]">Next</a>
+ [% IF bug.bug_id %]
+ [% IF this_bug_idx != -1 %]
+ [% IF this_bug_idx > 0 %]
+ [% prev_bug = this_bug_idx - 1 %]
+ <a href="show_bug.cgi?id=[% bug_list.$prev_bug %]">Prev</a>
+ [% ELSE %]
+ <i><font color="#777777">Prev</font></i>
+ [% END %]
+
+ [% IF this_bug_idx + 1 < bug_list.size %]
+ [% 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 %]
- <i><font color="#777777">Next</font></i>
+ (This bug is not in your list)
[% END %]
[% ELSE %]
- (This bug is not in your list)
+ &nbsp;&nbsp;
[% END %]
&nbsp;&nbsp;<a href="buglist.cgi?regetlastlist=1">Show list</a>