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
...@@ -32,14 +32,23 @@ ...@@ -32,14 +32,23 @@
<b>[% terms.Bug %] List:</b> <b>[% terms.Bug %] List:</b>
([% 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=
[%- 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= [% IF this_bug_idx + 1 < last_bug_list.size %]
[%- last_bug_list.first FILTER uri %]&amp;list_id= <a href="show_bug.cgi?id=
[%- my_search.id FILTER uri %]">First</a> [%- last_bug_list.last FILTER uri %]&amp;list_id=
<a href="show_bug.cgi?id= [%- my_search.id FILTER uri %]">Last</a>
[%- last_bug_list.last FILTER uri %]&amp;list_id= [% ELSE %]
[%- my_search.id FILTER uri %]">Last</a> <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 %]
<a href="show_bug.cgi?id= <a href="show_bug.cgi?id=
......
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