aboutsummaryrefslogtreecommitdiffstats
path: root/template/en/default/account/prefs/saved-searches.html.tmpl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-09-15 16:52:09 +0000
committerlpsolit%gmail.com <>2009-09-15 16:52:09 +0000
commit2d952ffa8c9f22b1c2c7930bc4e2673e72e51f5b (patch)
treefac21b45d7f39fd7f7febafdc97c333ff878fe32 /template/en/default/account/prefs/saved-searches.html.tmpl
parent1eeabed432ff92b580d8f8417a24abac16436734 (diff)
downloadbugs-2d952ffa8c9f22b1c2c7930bc4e2673e72e51f5b.tar
bugs-2d952ffa8c9f22b1c2c7930bc4e2673e72e51f5b.tar.gz
bugs-2d952ffa8c9f22b1c2c7930bc4e2673e72e51f5b.tar.bz2
bugs-2d952ffa8c9f22b1c2c7930bc4e2673e72e51f5b.tar.xz
bugs-2d952ffa8c9f22b1c2c7930bc4e2673e72e51f5b.zip
Bug 510669: Do not display the "shared searches" table if there is no search shared with you - Patch by Frédéric Buclin <LpSolit@gmail.com> r=pyrzak a=LpSolit
Diffstat (limited to 'template/en/default/account/prefs/saved-searches.html.tmpl')
-rw-r--r--template/en/default/account/prefs/saved-searches.html.tmpl17
1 files changed, 5 insertions, 12 deletions
diff --git a/template/en/default/account/prefs/saved-searches.html.tmpl b/template/en/default/account/prefs/saved-searches.html.tmpl
index 280b932ba..f1286134b 100644
--- a/template/en/default/account/prefs/saved-searches.html.tmpl
+++ b/template/en/default/account/prefs/saved-searches.html.tmpl
@@ -155,9 +155,9 @@
[% 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>
@@ -180,9 +180,7 @@
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>
@@ -205,12 +203,7 @@
</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 %]