Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Side by Side Diff: milo/appengine/frontend/templates/buildbot/includes/buildbot.html

Issue 2248893002: Settings page for analytics ID (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: y Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 {{define "buildbot"}} 1 {{define "buildbot"}}
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 <!-- Copyright 2015 The LUCI Authors. All rights reserved. 3 <!-- Copyright 2015 The LUCI Authors. All rights reserved.
4 Use of this source code is governed under the Apache License, Version 2.0. 4 Use of this source code is governed under the Apache License, Version 2.0.
5 that can be found in the LICENSE file. --> 5 that can be found in the LICENSE file. -->
6 <meta charset="utf-8"> 6 <meta charset="utf-8">
7 <title>{{template "title" .}}</title> 7 <title>{{template "title" .}}</title>
8 <link rel="stylesheet" href="/static/buildbot/css/default.css" type="text/css"> 8 <link rel="stylesheet" href="/static/buildbot/css/default.css" type="text/css">
9 <script src="/static/common/js/time.js"></script> 9 <script src="/static/common/js/time.js"></script>
10 <script src="/static/common/third_party/js/jquery.min.js"></script> 10 <script src="/static/common/third_party/js/jquery.min.js"></script>
11 {{template "head" . }} 11 {{template "head" . }}
12 12
13 <body class="interface"> 13 <body class="interface">
14 <header> 14 <header>
15 Luci 15 Luci
16 </header> 16 </header>
17 <hr> 17 <hr>
18 {{template "body" .}} 18 {{template "body" .}}
19 <footer> 19 <footer>
20 <hr> 20 <hr>
21 <a href="https://github.com/luci">luci</a>, 21 <a href="https://github.com/luci">luci</a>,
22 working for the <a href="https://chromium.org/">Chromium</a> project.<br> 22 working for the <a href="https://chromium.org/">Chromium</a> project.<br>
23 Page built: <b>{{.CurrentTime | localTime "" }}</b> (All times local) 23 Page built: <b>{{.CurrentTime | localTime "" }}</b> (All times local)
24 </footer> 24 </footer>
25 <script> 25 <script>
26 (function () { 26 (function () {
27 'use strict'; 27 'use strict';
28 milo.makeTimesLocal(); 28 milo.makeTimesLocal();
29 })(); 29 })();
30 {{ if .AnalyticsID }}
31 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
32 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
33 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
34 })(window,document,'script','https://www.google-analytics.com/analytics.js','ga' );
35
36 ga('create', '{{.AnalyticsID}}', 'auto');
37 ga('send', 'pageview');
38 {{ end }}
30 </script> 39 </script>
31 {{end}} 40 {{end}}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698