loads categories in sidebar for balloting phase
This commit is contained in:
@@ -5,6 +5,7 @@ module Budgets
|
|||||||
#before_action :ensure_final_voting_allowed
|
#before_action :ensure_final_voting_allowed
|
||||||
before_action :load_budget
|
before_action :load_budget
|
||||||
before_action :load_ballot
|
before_action :load_ballot
|
||||||
|
before_action :load_categories
|
||||||
|
|
||||||
before_action :load_investments
|
before_action :load_investments
|
||||||
|
|
||||||
@@ -63,6 +64,9 @@ module Budgets
|
|||||||
@heading = @investment.heading
|
@heading = @investment.heading
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def load_categories
|
||||||
|
@categories = ActsAsTaggableOn::Tag.where("kind = 'category'").order(:name)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -14,8 +14,8 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= render "shared/tag_cloud", taggable: 'budget/investment' %>
|
<%= render "shared/tag_cloud", taggable: 'budget/investment' %>
|
||||||
<%= render 'categories' %>
|
<%= render 'budgets/investments/categories' %>
|
||||||
<%= render 'feasibility_link' %>
|
<%= render 'budgets/investments/feasibility_link' %>
|
||||||
|
|
||||||
<% if @heading && can?(:show, @ballot) %>
|
<% if @heading && can?(:show, @ballot) %>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user