From 1e91e9fa93155079969d9fddcda1654462b8f8e2 Mon Sep 17 00:00:00 2001 From: Sunil Joshi Date: Wed, 2 Jan 2013 01:46:21 +0100 Subject: 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 --- template/en/default/bug/navigate.html.tmpl | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'template') 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 @@ [% 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 %]