~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/templates/base-layout.pt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-01 04:41:42 UTC
  • mfrom: (14412.2.1 no-more-external-js)
  • Revision ID: launchpad@pqm.canonical.com-20111201044142-1uttrcpntz960vxk
[r=jtv][bug=897945] Don't include Google Analytics JS or Google Web
        Fonts CSS. We shouldn't be running off-site code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
      ${view/macro:pagetype}
73
73
      ${view/context/fmt:public-private-css}
74
74
      yui3-skin-sam">
75
 
        <script type="text/javascript"
76
 
          tal:condition="python: is_lpnet">
77
 
          var _gaq = _gaq || [];
78
 
          _gaq.push(['_setAccount', 'UA-12833497-1']);
79
 
          _gaq.push(['_setDomainName', '.launchpad.net']);
80
 
          _gaq.push(['_setAllowHash', false]);
81
 
          _gaq.push(['_trackPageview']);
82
 
 
83
 
          (function() {
84
 
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
85
 
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
86
 
            (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
87
 
          })();
88
 
        </script>
89
75
    <div class="yui-d0">
90
76
      <div id="locationbar" class="login-logout">
91
77
        <tal:login replace="structure context/@@login_status" />