Commit 1e91e9fa authored by Sunil Joshi's avatar Sunil Joshi Committed by Frédéric Buclin

Bug 824342: The "First" and "Last" links should be disabled on bug navigation…

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
parent 077fc512
...@@ -33,12 +33,21 @@ ...@@ -33,12 +33,21 @@
([% this_bug_idx + 1 %] of [% last_bug_list.size %]) ([% this_bug_idx + 1 %] of [% last_bug_list.size %])
[% IF this_bug_idx > 0 %]
<a href="show_bug.cgi?id= <a href="show_bug.cgi?id=
[%- last_bug_list.first FILTER uri %]&amp;list_id= [%- last_bug_list.first FILTER uri %]&amp;list_id=
[%- my_search.id FILTER uri %]">First</a> [%- my_search.id FILTER uri %]">First</a>
[% ELSE %]
<i><font color="#777777">First</font></i>
[% END %]
[% IF this_bug_idx + 1 < last_bug_list.size %]
<a href="show_bug.cgi?id= <a href="show_bug.cgi?id=
[%- last_bug_list.last FILTER uri %]&amp;list_id= [%- last_bug_list.last FILTER uri %]&amp;list_id=
[%- my_search.id FILTER uri %]">Last</a> [%- my_search.id FILTER uri %]">Last</a>
[% ELSE %]
<i><font color="#777777">Last</font></i>
[% END %]
[% IF this_bug_idx > 0 %] [% IF this_bug_idx > 0 %]
[% prev_bug = this_bug_idx - 1 %] [% prev_bug = this_bug_idx - 1 %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment