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

Side by Side Diff: masters/master.chromium/templates/layout.html

Issue 2491643003: Update waterfall templates to include Milo link. (Closed)
Patch Set: Common resources bucket, only for "chromium" templates. 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 unified diff | Download patch
OLDNEW
1 {%- block doctype -%} 1 {%- block doctype -%}
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 {% endblock %} 4 {% endblock %}
5 <html xmlns="http://www.w3.org/1999/xhtml"> 5 <html xmlns="http://www.w3.org/1999/xhtml">
6 <head> 6 <head>
7 {% block head %} 7 {% block head %}
8 <link rel="shortcut icon" href="favicon.ico"> 8 <link rel="shortcut icon" href="favicon.ico">
9 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 9 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10 {% if metatags %} 10 {% if metatags %}
11 {{ metatags }} 11 {{ metatags }}
12 {% endif %} 12 {% endif %}
13 {% if refresh %} 13 {% if refresh %}
14 <meta http-equiv="refresh" content="{{ refresh|e }}"/> 14 <meta http-equiv="refresh" content="{{ refresh|e }}"/>
15 {% endif %} 15 {% endif %}
16 <title>{{ pageTitle|e }}</title> 16 <title>{{ pageTitle|e }}</title>
17 <link rel="stylesheet" href="{{ stylesheet }}" type="text/css" /> 17 <link rel="stylesheet" href="{{ stylesheet }}" type="text/css" />
18 <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ path_t o_root }}rss"> 18 <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ path_t o_root }}rss">
19
20 <link rel="stylesheet" href="{{ path_to_root }}common-resources/milo.css" ty pe="text/css" />
21 <script src="{{ path_to_root }}common-resources/milo.js"></script>
19 {% endblock %} 22 {% endblock %}
20 </head> 23 </head>
21 <body class="interface"> 24 <body class="interface">
22 {% block header -%} 25 {% block header -%}
23 <div class="header"> 26 <div class="header">
24 <a href="{{ path_to_root or '.' }}">Home</a> 27 <a href="{{ path_to_root or '.' }}">Home</a>
25 - <a href="{{ path_to_root }}waterfall">Waterfall</a> 28 - <a href="{{ path_to_root }}waterfall">Waterfall</a>
26 <a href="{{ path_to_root }}grid">Grid</a> 29 <a href="{{ path_to_root }}grid">Grid</a>
27 <a href="{{ path_to_root }}tgrid">T-Grid</a> 30 <a href="{{ path_to_root }}tgrid">T-Grid</a>
28 <a href="{{ path_to_root }}console">Console</a> 31 <a href="{{ path_to_root }}console">Console</a>
29 <a href="{{ path_to_root }}builders">Builders</a> 32 <a href="{{ path_to_root }}builders">Builders</a>
30 <a href="{{ path_to_root }}one_line_per_build">Recent Builds</a> 33 <a href="{{ path_to_root }}one_line_per_build">Recent Builds</a>
31 <a href="{{ path_to_root }}buildslaves">Buildslaves</a> 34 <a href="{{ path_to_root }}buildslaves">Buildslaves</a>
32 <a href="{{ path_to_root }}changes">Changesources</a> 35 <a href="{{ path_to_root }}changes">Changesources</a>
33 - <a href="{{ path_to_root }}json/help">JSON API</a> 36 - <a href="{{ path_to_root }}json/help">JSON API</a>
34 - <a href="{{ path_to_root }}about">About</a> 37 - <a href="{{ path_to_root }}about">About</a>
35 </div> 38 </div>
39
40 <!-- Inject Milo tag, when appropriate. -->
41 <script>
42 (function() { MiloInject("{{path_to_root}}", "{{mastername|default}}"); }( ));
43 </script>
36 {% endblock %} 44 {% endblock %}
37 45
38 {% include "waterfall-state.html" %} 46 {% include "waterfall-state.html" %}
39 47
40 {%- block barecontent -%} 48 {%- block barecontent -%}
41 <hr/> 49 <hr/>
42 50
43 <div class="content"> 51 <div class="content">
44 {%- block content -%} 52 {%- block content -%}
45 {%- endblock -%} 53 {%- endblock -%}
(...skipping 10 matching lines...) Expand all
56 <a href="{{ title_url }}">{{ title }}</a> 64 <a href="{{ title_url }}">{{ title }}</a>
57 {%- else -%} 65 {%- else -%}
58 {{ title }} 66 {{ title }}
59 {%- endif -%} 67 {%- endif -%}
60 &nbsp;project. 68 &nbsp;project.
61 {%- endif -%} 69 {%- endif -%}
62 <br/> 70 <br/>
63 Page built: <b>{{ time }}</b> ({{ tz }}) 71 Page built: <b>{{ time }}</b> ({{ tz }})
64 </div> 72 </div>
65 {% endblock -%} 73 {% endblock -%}
74 <!-- Identify opportunities to redirect to Milo and populate. -->
iannucci 2016/11/10 20:56:41 this looks like a random extra comment?
dnj 2016/11/10 22:42:02 Done.
66 <script> 75 <script>
67 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function( ){ 76 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function( ){
68 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement (o), 77 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement (o),
69 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore (a,m) 78 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore (a,m)
70 })(window,document,'script','//www.google-analytics.com/analytics.js','ga' ); 79 })(window,document,'script','//www.google-analytics.com/analytics.js','ga' );
71 80
72 ga('create', 'UA-55762617-2', {'siteSpeedSampleRate': 100}); 81 ga('create', 'UA-55762617-2', {'siteSpeedSampleRate': 100});
73 ga('send', 'pageview'); 82 ga('send', 'pageview');
74 83
75 </script> 84 </script>
76 </body> 85 </body>
77 </html> 86 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698