diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-05-31 08:57:29 +0100 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-05-31 08:57:29 +0100 |
commit | 726db4e3549daae10a1f185135ad3dcc6e973136 (patch) | |
tree | bfa30e0bfcd9a400eb7df048665fd2174534d956 | |
parent | fad43e588b3dde373807ae43e56710ac8f187ece (diff) |
clearer indentation
-rw-r--r-- | app/views/layouts/default.rhtml | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/app/views/layouts/default.rhtml b/app/views/layouts/default.rhtml index b2615576c..ed0a52e85 100644 --- a/app/views/layouts/default.rhtml +++ b/app/views/layouts/default.rhtml @@ -156,17 +156,18 @@ </div> <% ga_code = MySociety::Config.get('GA_CODE', '') - unless ga_code.empty? - %> - <script> - var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); - document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); - </script> - <script> - var pageTracker = _gat._getTracker("<%=ga_code%>"); - pageTracker._trackPageview(); - </script> - <% end %> + + unless ga_code.empty? %> + <script> + var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); + document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); + </script> + <script> + var pageTracker = _gat._getTracker("<%=ga_code%>"); + pageTracker._trackPageview(); + </script> + + <% end %> <%= render :partial => 'general/before_body_end' %> </body> |