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>
18 lines
256 B
Ruby
18 lines
256 B
Ruby
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
|