From: Sunil Joshi Date: Wed, 2 Jan 2013 00:46:21 +0000 (+0100) Subject: Bug 824342: The "First" and "Last" links should be disabled on bug navigation when... X-Git-Tag: bugzilla-4.5.1~247 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e91e9fa93155079969d9fddcda1654462b8f8e2;p=thirdparty%2Fbugzilla.git 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 --- diff --git a/template/en/default/bug/navigate.html.tmpl b/template/en/default/bug/navigate.html.tmpl index 22d8c47990..843c970c15 100644 --- a/template/en/default/bug/navigate.html.tmpl +++ b/template/en/default/bug/navigate.html.tmpl @@ -32,14 +32,23 @@ [% terms.Bug %] List: ([% this_bug_idx + 1 %] of [% last_bug_list.size %]) + + [% IF this_bug_idx > 0 %] + First + [% ELSE %] + First + [% END %] - First - Last - + [% IF this_bug_idx + 1 < last_bug_list.size %] + Last + [% ELSE %] + Last + [% END %] + [% IF this_bug_idx > 0 %] [% prev_bug = this_bug_idx - 1 %]