From 3d18c26720c01dcf31383a319bc0abb59e8aa23b Mon Sep 17 00:00:00 2001 From: Pete Herlihy Date: Wed, 22 Jul 2015 10:48:43 +0100 Subject: [PATCH 1/5] Removing header update feature --- app/views/layouts/application.html.erb | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 273f0cb2b..d459f6b46 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -36,9 +36,6 @@ <%= cache_for :footer do %> <%= render 'application/footer' %> <%= javascript_include_tag 'application' %> - <% if home_page? %> - <%= javascript_include_tag 'homepage' %> - <% end %> <% if create_petition_page? %> <%= javascript_include_tag 'create-petition' %> <% end %> From 7cfebd0d609a49b42a3507cc303a4d215ef0c8ba Mon Sep 17 00:00:00 2001 From: Pete Herlihy Date: Wed, 22 Jul 2015 10:50:47 +0100 Subject: [PATCH 2/5] Removing header update feature [ci ckip] --- config/initializers/assets.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb index 748249e23..f84b0e577 100644 --- a/config/initializers/assets.rb +++ b/config/initializers/assets.rb @@ -15,7 +15,6 @@ delayed/web/application.css ie.js admin.js - homepage.js create-petition.js ) From 3d380cf5dceb20a9091cba0ae32c87d04a8f7136 Mon Sep 17 00:00:00 2001 From: Pete Herlihy Date: Wed, 22 Jul 2015 10:51:40 +0100 Subject: [PATCH 3/5] Removing header update feature --- app/assets/javascripts/homepage.js | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 app/assets/javascripts/homepage.js diff --git a/app/assets/javascripts/homepage.js b/app/assets/javascripts/homepage.js deleted file mode 100644 index 3abda4eac..000000000 --- a/app/assets/javascripts/homepage.js +++ /dev/null @@ -1,13 +0,0 @@ -// Easter egg ;) - -$("header .proposition .graphic-portcullis-white").click(function(){ - var $thing = $(this); - var count = ($thing.data("click_count") || 0) + 1; - $thing.data("click_count", count); - if ( count == 7 ) - $("header .strapline").html("Down with that sort of thing!"); - else if ( count > 7 ) { - $("header .strapline").append( "!" ); - } - return false; -}); From 143400c5bcf84a80d71f309aef7958f8abd63c90 Mon Sep 17 00:00:00 2001 From: Pete Herlihy Date: Wed, 22 Jul 2015 11:29:26 +0100 Subject: [PATCH 4/5] Updated cache fragments to remove header --- config/fragments.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/config/fragments.yml b/config/fragments.yml index 5629de82e..bb173944a 100644 --- a/config/fragments.yml +++ b/config/fragments.yml @@ -9,12 +9,6 @@ head: options: expires_in: 300 -header: - keys: - - :home_page - options: - expires_in: 300 - footer: keys: - :create_petition_page From 71da2b3268bd497d9b56e4c99f7a1e40df4cece8 Mon Sep 17 00:00:00 2001 From: Pete Herlihy Date: Wed, 22 Jul 2015 11:35:50 +0100 Subject: [PATCH 5/5] Updated cache fragments in header --- config/fragments.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/fragments.yml b/config/fragments.yml index bb173944a..bc2779873 100644 --- a/config/fragments.yml +++ b/config/fragments.yml @@ -9,6 +9,10 @@ head: options: expires_in: 300 +header: + options: + expires_in: 300 + footer: keys: - :create_petition_page