Files
grecia/app/controllers/sdg/goals_controller.rb
taitus d26607183e Add sdg help page
In this page we will render a list of clickable Goals icons that will show their
targets and related local targets

Co-authored-by: Senen <senenrodero@gmail.com>
2021-03-02 14:45:18 +01:00

19 lines
404 B
Ruby

class SDG::GoalsController < ApplicationController
include FeatureFlags
feature_flag :sdg
load_and_authorize_resource find_by: :code, id_param: :code
def index
@goals = @goals.order(:code)
@phases = SDG::Phase.accessible_by(current_ability).order(:kind)
@header = WebSection.find_by!(name: "sdg").header
end
def show
end
def help
@goals = @goals.order(:code)
end
end