18 lines
350 B
Ruby
18 lines
350 B
Ruby
class Layout::CookiesConsent::BannerComponent < ApplicationComponent
|
|
delegate :cookies, to: :helpers
|
|
|
|
def render?
|
|
feature?(:cookies_consent) && cookies_consent_unset?
|
|
end
|
|
|
|
def more_info_link
|
|
Setting["cookies_consent.more_info_link"]
|
|
end
|
|
|
|
private
|
|
|
|
def cookies_consent_unset?
|
|
cookies["cookies_consent"].blank?
|
|
end
|
|
end
|