summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug
diff options
context:
space:
mode:
authorSunil Joshi <joshi_sunil@in.com>2013-01-02 01:46:21 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2013-01-02 01:46:21 +0100
commit1e91e9fa93155079969d9fddcda1654462b8f8e2 (patch)
tree63d06f97b1ab6e87977ae4600ea7dc8d31a63069 /template/en/default/bug
parent077fc512a446adbf3316ea570b468ceb3d854935 (diff)
downloadbugzilla-1e91e9fa93155079969d9fddcda1654462b8f8e2.tar.gz
bugzilla-1e91e9fa93155079969d9fddcda1654462b8f8e2.tar.xz
Bug 824342: The "First" and "Last" links should be disabled on bug navigation when we are on the first or last bug respectively of the buglist
r=LpSolit a=justdave
Diffstat (limited to 'template/en/default/bug')
-rw-r--r--template/en/default/bug/navigate.html.tmpl23
1 files changed, 16 insertions, 7 deletions
diff --git a/template/en/default/bug/navigate.html.tmpl b/template/en/default/bug/navigate.html.tmpl
index 22d8c4799..843c970c1 100644
--- a/template/en/default/bug/navigate.html.tmpl
+++ b/template/en/default/bug/navigate.html.tmpl
@@ -32,14 +32,23 @@
<b>[% terms.Bug %] List:</b>
([% this_bug_idx + 1 %] of [% last_bug_list.size %])
+
+ [% IF this_bug_idx > 0 %]
+ <a href="show_bug.cgi?id=
+ [%- last_bug_list.first FILTER uri %]&amp;list_id=
+ [%- my_search.id FILTER uri %]">First</a>
+ [% ELSE %]
+ <i><font color="#777777">First</font></i>
+ [% END %]
- <a href="show_bug.cgi?id=
- [%- last_bug_list.first FILTER uri %]&amp;list_id=
- [%- my_search.id FILTER uri %]">First</a>
- <a href="show_bug.cgi?id=
- [%- last_bug_list.last FILTER uri %]&amp;list_id=
- [%- my_search.id FILTER uri %]">Last</a>
-
+ [% IF this_bug_idx + 1 < last_bug_list.size %]
+ <a href="show_bug.cgi?id=
+ [%- last_bug_list.last FILTER uri %]&amp;list_id=
+ [%- my_search.id FILTER uri %]">Last</a>
+ [% ELSE %]
+ <i><font color="#777777">Last</font></i>
+ [% END %]
+
[% IF this_bug_idx > 0 %]
[% prev_bug = this_bug_idx - 1 %]
<a href="show_bug.cgi?id=