Update sdg management homepage to render header cards

This commit is contained in:
Senén Rodero Rodríguez
2021-02-18 20:24:14 +01:00
committed by Javi Martín
parent 9cc0ad0ba9
commit 1d6490e22f
8 changed files with 68 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
class SDGManagement::HomepageController < SDGManagement::BaseController
def show
@phases = SDG::Phase.accessible_by(current_ability).order(:kind)
@card = WebSection.find_by!(name: "sdg").header
end
end