hides featured debates in search & tag pages

This commit is contained in:
Juanjo Bazán
2015-11-13 12:45:25 +01:00
parent a8e991eea2
commit c4671ee960

View File

@@ -44,7 +44,9 @@
<%= link_to t("debates.index.start_debate"), new_debate_path, class: 'button radius expand' %>
</div>
<%= render "featured_debates_static" %>
<% unless @tag_filter || @search_terms %>
<%= render "featured_debates_static" %>
<% end %>
<%= render @debates %>
<%= paginate @debates %>