removes unnecessary helper for welcome page

This commit is contained in:
decabeza
2017-10-13 18:58:58 +02:00
parent 127ae893fc
commit 599c243f62
2 changed files with 2 additions and 7 deletions

View File

@@ -55,8 +55,4 @@ module WelcomeHelper
end
end
def highlight_background
(feature?("user.recommendations") && current_user) ? "highlight" : ""
end
end

View File

@@ -22,12 +22,12 @@
<%= render "recommended",
recommended_debates: @recommended_debates,
recommended_proposals: @recommended_proposals %>
<hr>
<% end %>
<% cache [locale_and_user_status, @featured_debates, @featured_proposals, 'featured'] do %>
<main>
<div class="small-12 column text-center <%= highlight_background %>">
<div class="small-12 column text-center">
<div class="row margin padding">
<div class="small-12 medium-3 column">
<h2><%= t("welcome.debates.title") %></h2>
@@ -47,6 +47,5 @@
</div>
</div>
</div>
</main>
<% end %>