Render header on sdg index page

We no longer show the static header when we have created a
custom header.
This commit is contained in:
taitus
2021-02-19 09:56:23 +01:00
committed by Javi Martín
parent e639cab994
commit 4a880fc1c5
6 changed files with 33 additions and 10 deletions

View File

@@ -6,6 +6,7 @@ class SDG::GoalsController < ApplicationController
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