]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 510669: Do not display the "shared searches" table if there is no search shared...
authorlpsolit%gmail.com <>
Tue, 15 Sep 2009 16:52:09 +0000 (16:52 +0000)
committerlpsolit%gmail.com <>
Tue, 15 Sep 2009 16:52:09 +0000 (16:52 +0000)
template/en/default/account/prefs/saved-searches.html.tmpl

index 280b932ba8a076747ed8bcf10cd991994e47d630..f1286134bcd325a249c8ac9e88ef775455955ac5 100644 (file)
 [% END %]
 </blockquote>
 
-<p>You may use these searches saved and shared by others:</p>
+[% IF user.queries_available.size %]
+  <p>You may use these searches saved and shared by others:</p>
 
-<blockquote>
   <table border="1" cellpadding="3">  
     <tr>
       <th>
         Footer
       </th>
     </tr>
-    [% found_shared_query = 0 %]
     [% FOREACH q = user.queries_available %]
-      [% found_shared_query = 1 %]
       <tr>
         <td>[% q.name FILTER html %]</td>
         <td>[% q.user.identity FILTER html %]</td>
         </td>
       </tr>
     [% END %]
-    [% IF !found_shared_query %]
-      <tr>
-        <td colspan="6" style="text-align: center">
-          &lt;None&gt;
-        </td>
-      </tr>
-    [% END %]
   </table>
-</blockquote>
+[% ELSE %]
+  <p>No searches are shared with you by other users.</p>
+[% END %]