Render google analytics

This commit is contained in:
manson 2014-07-07 16:18:52 +08:00
parent e2add1bc06
commit 60aef1426a
3 changed files with 6 additions and 0 deletions

View File

@ -45,6 +45,10 @@ module ApplicationHelper
title
end
def render_google_analytics
Site.first.google_analytics.html_safe
end
def render_footer
site = Site.first
footer_file = File.join('../templates', "#{@key}", "/home/footer.html.erb")

View File

@ -11,6 +11,7 @@
<%= javascript_include_tag "plugin/jquery.cycle2.min"%>
<%= javascript_include_tag "app"%>
<%= javascript_include_tag "#{@dataApi}" if @dataApi != nil%>
<%= render_google_analytics %>
<!--[if lt IE 9]>
<%= javascript_include_tag "plugin/html5shiv" %>
<%= javascript_include_tag "plugin/response.min" %>

View File

@ -460,6 +460,7 @@
$("#import-progress").delay(1000).fadeOut(300,function(){
$("#import-head").fadeIn(0);
$("#import-modules").fadeIn(300);
$('#import-start-btn').show();
});
}