From 3d297b0cb6523a6f224180e8d6cc1ee8a5360e25 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Sun, 19 Apr 2015 11:32:02 +0200 Subject: [PATCH] Added EU cookie compliance handling. Adds an annoying bar at the bottom to comply with EU cookie privacy law (while the secret services strip us naked and craps on our privacy big time). --- Gemfile | 3 +++ Gemfile.lock | 6 ++++++ app/assets/javascripts/application.js | 1 + app/assets/stylesheets/application.scss | 1 + app/views/layouts/_footer.slim | 2 ++ 5 files changed, 13 insertions(+) diff --git a/Gemfile b/Gemfile index bf7d16e..50a9289 100644 --- a/Gemfile +++ b/Gemfile @@ -90,3 +90,6 @@ gem 'slim-rails' # Attachment/image handling gem "paperclip", "~> 4.2" + +# Comply with stupid european cookie law +gem 'cookies_eu' diff --git a/Gemfile.lock b/Gemfile.lock index 442a63f..8c7c9a0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -60,6 +60,9 @@ GEM execjs coffee-script-source (1.9.1.1) columnize (0.9.0) + cookies_eu (1.0.19) + jquery-cookie-rails + jquery-rails debug_inspector (0.0.2) erubis (2.7.0) execjs (2.5.2) @@ -74,6 +77,8 @@ GEM jbuilder (2.2.13) activesupport (>= 3.0.0, < 5) multi_json (~> 1.2) + jquery-cookie-rails (1.3.1.1) + railties (>= 3.2.0, < 5.0) jquery-rails (4.0.3) rails-dom-testing (~> 1.0) railties (>= 4.2.0) @@ -187,6 +192,7 @@ DEPENDENCIES binding_of_caller byebug coffee-rails (~> 4.1.0) + cookies_eu fancybox2-rails (~> 0.2.8) foundation-rails jbuilder (~> 2.0) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 82cbb1a..b0306fe 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -14,4 +14,5 @@ //= require jquery_ujs //= require foundation //= require fancybox +//= require cookies_eu //= require_tree . diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 2f5bf4a..1a74fcb 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -9,6 +9,7 @@ * compiled file, but it's generally better to create a new file per style scope. * *= require_self + *= require cookies_eu *= require fancybox */ diff --git a/app/views/layouts/_footer.slim b/app/views/layouts/_footer.slim index c0260c9..984f19a 100644 --- a/app/views/layouts/_footer.slim +++ b/app/views/layouts/_footer.slim @@ -11,3 +11,5 @@ a href="mailto:email@christoph-haas.de" feedback? ' | Kindly hosted by a href="http://vexxhost.com/" VEXXHOST + + = render 'cookies_eu/cookies_eu', link: '/cookies'