Implements 182. resources are shown as cards in dashboard progress view.
Implements #182

Implements 182. resources are shown as cards in dashboard progress view.
This commit is contained in:
Juan Salvador Pérez García
2018-07-04 18:08:35 +02:00
parent 9f0ca0cec7
commit caffd97cc8
11 changed files with 123 additions and 14 deletions

View File

@@ -13,11 +13,11 @@ class Dashboard::BaseController < ApplicationController
end
def proposed_actions
@proposed_actions ||= ProposalDashboardAction.proposed_actions.active_for(proposal)
@proposed_actions ||= ProposalDashboardAction.proposed_actions.active_for(proposal).order(order: :asc)
end
def resources
@resources ||= ProposalDashboardAction.resources.active_for(proposal)
@resources ||= ProposalDashboardAction.resources.active_for(proposal).order(order: :asc)
end
def next_goal_supports