diff --git a/app/views/users/_activity_page.html.erb b/app/views/users/_activity_page.html.erb index eaa8a73b7..410a71aa1 100644 --- a/app/views/users/_activity_page.html.erb +++ b/app/views/users/_activity_page.html.erb @@ -1,5 +1,5 @@ -<%= render "following" if @follows.present? %> -<%= render "proposals" if @proposals.present? && feature?(:proposals) %> -<%= render "debates" if @debates.present? && feature?(:debates) %> -<%= render "budget_investments" if @budget_investments.present? && feature?(:budgets) %> -<%= render "comments" if @comments.present? %> +<%= render "following", user: @user, follows: @follows if @follows.present? %> +<%= render "proposals", proposals: @proposals if @proposals.present? && feature?(:proposals) %> +<%= render "debates", debates: @debates if @debates.present? && feature?(:debates) %> +<%= render "budget_investments", budge_investments: @budge_investments if @budge_investments.present? && feature?(:budgets) %> +<%= render "comments", comments: @comments if @comments.present? %> diff --git a/app/views/users/_budget_investments.html.erb b/app/views/users/_budget_investments.html.erb index 9c6775265..a2b523133 100644 --- a/app/views/users/_budget_investments.html.erb +++ b/app/views/users/_budget_investments.html.erb @@ -6,10 +6,10 @@
- <% @budget_investments.each do |budget_investment| %> + <% budget_investments.each do |budget_investment| %> <%= render "budget_investment", budget_investment: budget_investment %> <% end %> -<%= paginate @budget_investments %> +<%= paginate budget_investments %> diff --git a/app/views/users/_comments.html.erb b/app/views/users/_comments.html.erb index 7b7cf5165..be264ce05 100644 --- a/app/views/users/_comments.html.erb +++ b/app/views/users/_comments.html.erb @@ -5,7 +5,7 @@ - <% @comments.each do |comment| %> + <% comments.each do |comment| %>