loads categories in sidebar for balloting phase

This commit is contained in:
rgarcia
2017-01-15 12:00:14 +01:00
parent 42604e27b9
commit 938ba40306
2 changed files with 6 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ module Budgets
#before_action :ensure_final_voting_allowed
before_action :load_budget
before_action :load_ballot
before_action :load_categories
before_action :load_investments
@@ -63,6 +64,9 @@ module Budgets
@heading = @investment.heading
end
def load_categories
@categories = ActsAsTaggableOn::Tag.where("kind = 'category'").order(:name)
end
end
end
end

View File

@@ -14,8 +14,8 @@
<% end %>
<%= render "shared/tag_cloud", taggable: 'budget/investment' %>
<%= render 'categories' %>
<%= render 'feasibility_link' %>
<%= render 'budgets/investments/categories' %>
<%= render 'budgets/investments/feasibility_link' %>
<% if @heading && can?(:show, @ballot) %>