]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 882568: Remove unnecessary text about a bug not being part of last search
authorByron Jones <bjones@mozilla.com>
Thu, 27 Jun 2013 04:33:20 +0000 (12:33 +0800)
committerByron Jones <bjones@mozilla.com>
Thu, 27 Jun 2013 04:33:20 +0000 (12:33 +0800)
r=dkl, a=LpSolit

template/en/default/bug/navigate.html.tmpl

index 843c970c156f98dc4cfcbef8e601991e419de661..13564a8eae5287958f34e25b09afaae807346952 100644 (file)
     [% Hook.process("links") %]
     <li>&nbsp;-&nbsp;<a href="#">Top of page </a></li>
     </ul>
-[% END %]        
-
+[% END %]
 
-<div class="navigation">
 [% SET my_search = user.recent_search_for(bug) %]
 [% IF my_search %]
+  <div class="navigation">
   [% SET last_bug_list = my_search.bug_list %]
   [% SET this_bug_idx = lsearch(last_bug_list, bug.id) %]
   <b>[% terms.Bug %] List:</b>
 
   ([% 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=
@@ -48,7 +47,7 @@
   [% ELSE %]
     <i><font color="#777777">Last</font></i>
   [% END %]
-  
+
   [% IF this_bug_idx > 0 %]
     [% prev_bug = this_bug_idx - 1 %]
     <a href="show_bug.cgi?id=
 
   &nbsp;&nbsp;<a href="buglist.cgi?regetlastlist=
               [%- my_search.id FILTER uri %]">Show last search results</a>
-[% ELSE %]
-  [%# 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>
+  </div>
 [% END %]
-</div>