Sha256: b83eb425efe0c340c93153f6f38b949760aeb02b9a647a578019ca9605bfa4af
Contents?: true
Size: 862 Bytes
Versions: 2
Compression:
Stored size: 862 Bytes
Contents
<% if cookies.kind_of? ActionDispatch::Cookies::CookieJar %> <% if cookies && cookies['cookie_eu_consented'] != 'true' %> <div class="cookies-eu js-cookies-eu" <%= "dir=rtl" if I18n.exists?('cookies_eu.direction', I18n.locale) && I18n.t("cookies_eu.direction") == "rtl" %>> <span class="cookies-eu-content-holder"><%= t('cookies_eu.cookies_text') %></span> <span class="cookies-eu-button-holder"> <button class="cookies-eu-ok js-cookies-eu-ok"> <%= t('cookies_eu.ok') %> </button> <% if defined?(link).present? %> <a href="<%= link %>" class="cookies-eu-link" target="<%= defined?(target).present? ? target : '' %>"> <%= t('cookies_eu.learn_more') %> </a> <% end %> </span> </div> <% end %> <% else %> <% raise Exception.new "'cookies' is a reserved Rails class, please rename your method" %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cookies_eu-1.7.8 | app/views/cookies_eu/_consent_banner.html.erb |
cookies_eu-1.7.7 | app/views/cookies_eu/_consent_banner.html.erb |