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

Unified Diff: masters/master.chromium/templates/layout.html

Issue 2491643003: Update waterfall templates to include Milo link. (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: masters/master.chromium/templates/layout.html
diff --git a/masters/master.chromium/templates/layout.html b/masters/master.chromium/templates/layout.html
index 47e9b8622ed3ed3db15879193c752637e8e5c2b5..1ffa96248bb0da0d6b622fb837d05e30671a2f94 100644
--- a/masters/master.chromium/templates/layout.html
+++ b/masters/master.chromium/templates/layout.html
@@ -16,6 +16,9 @@
<title>{{ pageTitle|e }}</title>
<link rel="stylesheet" href="{{ stylesheet }}" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ path_to_root }}rss">
+
+ <link rel="stylesheet" href="{{ path_to_root }}milo.css" type="text/css" />
+ <script src="{{ path_to_root }}milo.js"></script>
{% endblock %}
</head>
<body class="interface">
@@ -33,6 +36,11 @@
- <a href="{{ path_to_root }}json/help">JSON API</a>
- <a href="{{ path_to_root }}about">About</a>
</div>
+
+ <!-- Inject Milo tag, when appropriate. -->
+ <script>
+ (function() { MiloInject("{{path_to_root}}", "{{mastername|default}}"); }());
+ </script>
{% endblock %}
{% include "waterfall-state.html" %}
@@ -63,6 +71,7 @@
Page built: <b>{{ time }}</b> ({{ tz }})
</div>
{% endblock -%}
+ <!-- Identify opportunities to redirect to Milo and populate. -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

Powered by Google App Engine
This is Rietveld 408576698