From a6f087b92ba085969c38614f54d88832b1779d17 Mon Sep 17 00:00:00 2001 From: Matchu Date: Sun, 14 Nov 2010 14:40:51 -0500 Subject: [PATCH] include announcement, analytics.js file to overwrite when necessary --- app/views/layouts/application.html.haml | 3 ++- app/views/static/_announcement.html | 0 public/javascripts/analytics.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 app/views/static/_announcement.html create mode 100644 public/javascripts/analytics.js diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index adb8688c..e3d9a636 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -7,13 +7,14 @@ — = yield :title = stylesheet_link_tag "compiled/screen" - = javascript_include_tag "http://#{RemoteImpressHost}/assets/js/analytics.js" = csrf_meta_tag = signed_in_meta_tag %body{:class => body_class} + = javascript_include_tag "analytics" #container - if content_for? :title %h1#title= yield :title + = render 'static/announcement.html' = yield :before_flashes = flashes diff --git a/app/views/static/_announcement.html b/app/views/static/_announcement.html new file mode 100644 index 00000000..e69de29b diff --git a/public/javascripts/analytics.js b/public/javascripts/analytics.js new file mode 100644 index 00000000..1b07eb0d --- /dev/null +++ b/public/javascripts/analytics.js @@ -0,0 +1 @@ +// Overwrite this file on deploy if you actually want to track people