displays sidebar in proposal summary page

This commit is contained in:
rgarcia
2016-02-16 13:58:58 +01:00
parent 42fdc52329
commit 14ddeaaa2e
2 changed files with 5 additions and 4 deletions

View File

@@ -6,8 +6,8 @@ class ProposalsController < ApplicationController
before_action :parse_advanced_search_terms, only: :index
before_action :parse_tag_filter, only: :index
before_action :set_search_order, only: :index
before_action :load_categories, only: [:index, :new, :edit, :map]
before_action :load_geozones, only: [:edit, :map]
before_action :load_categories, only: [:index, :new, :edit, :map, :summary]
before_action :load_geozones, only: [:edit, :map, :summary]
before_action :authenticate_user!, except: [:index, :show, :map, :summary]
has_orders %w{hot_score confidence_score created_at relevance}, only: :index
@@ -37,6 +37,7 @@ class ProposalsController < ApplicationController
def summary
@proposals = Proposal.last_week.sort_by_confidence_score.grouped_by_categories
@tag_cloud = tag_cloud
end
private

View File

@@ -49,8 +49,8 @@
<div class="small-12 medium-3 column">
<aside class="sidebar" role="complementary">
<%= link_to t("proposals.index.start_proposal"), new_proposal_path, class: 'button radius expand' %>
<%#= render "shared/tag_cloud", taggable: 'proposal' %>
<%#= render 'categories' %>
<%= render "shared/tag_cloud", taggable: 'proposal' %>
<%= render 'categories' %>
<%= render 'geozones' %>
</aside>
</div>