aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--template/en/default/bug/navigate.html.tmpl15
1 files changed, 13 insertions, 2 deletions
diff --git a/template/en/default/bug/navigate.html.tmpl b/template/en/default/bug/navigate.html.tmpl
index 68b894b0c..0263f6535 100644
--- a/template/en/default/bug/navigate.html.tmpl
+++ b/template/en/default/bug/navigate.html.tmpl
@@ -28,8 +28,10 @@
([% 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 %]
@@ -47,13 +49,22 @@
<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>