Files
nairobi/app/controllers/sdg/goals_controller.rb
taitus 4a880fc1c5 Render header on sdg index page
We no longer show the static header when we have created a
custom header.
2021-02-26 16:20:57 +01:00

15 lines
353 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
end