Sha256: 0cbb00046267a5c4f78828f58eb2de55229b5227e6765f235a2e79e9f762baff

Contents?: true

Size: 526 Bytes

Versions: 1

Compression:

Stored size: 526 Bytes

Contents

- structure = Structure.find_by(slug: 'cookie-policy-text')
- content = structure.try(:main)
- button_text = structure.try(:footer) || structure.try(:title) || 'OK'
- if content.present?
  .cookie_policy-overlay style="display: none;"
    .cookie_policy-pane
      = raw content

      button.button.cookie_policy-button[
      ] = strip_tags button_text

  = javascript_include_tag 'utils/cookie_policy', defer: true, async: true, onload: 'new CookiePolicy({root: ".cookie_policy-overlay", button: ".cookie_policy-button"})'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 app/cells/widgets/cookie_policy.html.slim