]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 151411: "(This bug is not in your list)" is confusing - Patch by Alfred Karl...
authorlpsolit%gmail.com <>
Tue, 21 Jun 2005 02:30:29 +0000 (02:30 +0000)
committerlpsolit%gmail.com <>
Tue, 21 Jun 2005 02:30:29 +0000 (02:30 +0000)
template/en/default/bug/navigate.html.tmpl

index 68b894b0c5f53b9d216a9045e0074519265e275b..0263f6535db868ed6295cb0e4c5df0853c0bb9da 100644 (file)
     ([% this_bug_idx + 1 %] of [% bug_list.size %])
   [% END %]
 
+[% IF this_bug_idx != -1 %]
   <a href="show_bug.cgi?id=[% bug_list.first %]">First</a>
   <a href="show_bug.cgi?id=[% bug_list.last %]">Last</a>
+[% END %]
 
   [% IF bug.bug_id %]
     [% IF this_bug_idx != -1 %]
         <i><font color="#777777">Next</font></i>
       [% END %]
     [% ELSE %]
-      (This [% terms.bug %] is not in your list)
+      (This [% terms.bug %] is not in your last search results)
     [% END %]
   [% ELSE %]
     &nbsp;&nbsp;
   [% END %]
 
-  &nbsp;&nbsp;<a href="buglist.cgi?regetlastlist=1">Show list</a>
+  &nbsp;&nbsp;<a href="buglist.cgi?regetlastlist=1">Show last search results</a>
+[% ELSE %]
+  [%# Either !bug_list || bug_list.size <= 0 %]
+  [%# With no list, don't show link to search results %]
+  <i><font color="#777777">First</font></i>
+  <i><font color="#777777">Last</font></i>
+  <i><font color="#777777">Prev</font></i>
+  <i><font color="#777777">Next</font></i>
+  &nbsp;&nbsp;
+  <i><font color="#777777">No search results available</font></i>
 [% END %]
 
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="query.cgi">Search page</a>