Commit f78c42d8 authored by Byron Jones's avatar Byron Jones

Bug 882568: Remove unnecessary text about a bug not being part of last search

r=dkl, a=LpSolit
parent a3454f54
...@@ -21,18 +21,17 @@ ...@@ -21,18 +21,17 @@
[% Hook.process("links") %] [% Hook.process("links") %]
<li>&nbsp;-&nbsp;<a href="#">Top of page </a></li> <li>&nbsp;-&nbsp;<a href="#">Top of page </a></li>
</ul> </ul>
[% END %] [% END %]
<div class="navigation">
[% SET my_search = user.recent_search_for(bug) %] [% SET my_search = user.recent_search_for(bug) %]
[% IF my_search %] [% IF my_search %]
<div class="navigation">
[% SET last_bug_list = my_search.bug_list %] [% SET last_bug_list = my_search.bug_list %]
[% SET this_bug_idx = lsearch(last_bug_list, bug.id) %] [% SET this_bug_idx = lsearch(last_bug_list, bug.id) %]
<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 %] [% 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=
...@@ -48,7 +47,7 @@ ...@@ -48,7 +47,7 @@
[% ELSE %] [% ELSE %]
<i><font color="#777777">Last</font></i> <i><font color="#777777">Last</font></i>
[% END %] [% 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=
...@@ -69,14 +68,5 @@ ...@@ -69,14 +68,5 @@
&nbsp;&nbsp;<a href="buglist.cgi?regetlastlist= &nbsp;&nbsp;<a href="buglist.cgi?regetlastlist=
[%- my_search.id FILTER uri %]">Show last search results</a> [%- my_search.id FILTER uri %]">Show last search results</a>
[% ELSE %] </div>
[%# With no list, don't show link to search results %]
<i><font color="#777777">First</font></i>
<i><font color="#777777">Last</font></i>
<i><font color="#777777">Prev</font></i>
<i><font color="#777777">Next</font></i>
&nbsp;&nbsp;
<i><font color="#777777">This [% terms.bug %] is not in your last
search results.</font></i>
[% END %] [% END %]
</div>
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