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>
This commit is contained in:
taitus
2021-02-10 18:43:14 +01:00
parent d741ccdb36
commit d26607183e
12 changed files with 134 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
class SDG::Goals::HelpPageComponent < ApplicationComponent
attr_reader :goals
def initialize(goals)
@goals = goals
end
def render?
feature?("sdg")
end
private
def is_active?(goal)
"is-active" if goal.code == 1
end
end