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>
19 lines
404 B
Ruby
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
|