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

Side by Side Diff: masters/master.tryserver.chromium.linux/templates/build.html

Issue 2484593002: Adding gantt chart to Build Status page on Buildbot Masters (Closed)
Patch Set: rebased 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 {% extends "layout.html" %} 1 {% extends "layout.html" %}
2 {% import 'forms.html' as forms %} 2 {% import 'forms.html' as forms %}
3 {% from "change_macros.html" import change with context %} 3 {% from "change_macros.html" import change with context %}
4 4
5 {% block content %} 5 {% block content %}
6 6
7 <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></ script>
8 <script type="text/javascript" src="/gantt_chart.js"></script>
9 <script type="text/javascript">
10 var rawSteps = [
11 {% for s in b.getSteps() %}
12 {'name': '{{ s.getName()|escapejs }}',
13 'start': new Date({{ s.getTimes()[0] }}*1000),
14 'end': new Date ({{ s.getTimes()[1] }}*1000)},
15 {% endfor %}
16 ];
17 </script>
7 <h1> 18 <h1>
8 Builder <a href="{{ path_to_builder }}">{{ b.getBuilder().getName() }}</a> 19 Builder <a href="{{ path_to_builder }}">{{ b.getBuilder().getName() }}</a>
9 Build #{{ b.getNumber() }} 20 Build #{{ b.getNumber() }}
10 </h1> 21 </h1>
11 <a href="https://chrome-logs-storage.appspot.com/browser/logs/{{ 22 <a href="https://chrome-logs-storage.appspot.com/browser/logs/{{
12 b.getProperty('mastername') }}/{{ b.getBuilder().getName() }}/{{ '%.7d' 23 b.getProperty('mastername') }}/{{ b.getBuilder().getName() }}/{{ '%.7d'
13 % b.getNumber() }}/" title="List of log files cached on Google Cloud 24 % b.getNumber() }}/" title="List of log files cached on Google Cloud
14 Storage" class="BuildHeader">Cached logs</a> 25 Storage" class="BuildHeader">Cached logs</a>
15 26
16 <div class="column"> 27 <div class="column">
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 </li> 189 </li>
179 {% endfor %} 190 {% endfor %}
180 </ul> 191 </ul>
181 </li> 192 </li>
182 {% endfor %} 193 {% endfor %}
183 194
184 {# Close out all open indentation sections. #} 195 {# Close out all open indentation sections. #}
185 {% for _ in range(-1, nest_level) %} 196 {% for _ in range(-1, nest_level) %}
186 </li></ol> 197 </li></ol>
187 {% endfor %} 198 {% endfor %}
188 199 <div>
200 <button type="button" onclick="toggleChart(rawSteps);">
201 SHOW/HIDE Gantt Chart
202 </button>
203 <div id="chart_div"></div>
204 </div>
189 </div> 205 </div>
190 <div class="column"> 206 <div class="column">
191 207
192 <h2>Build Properties:</h2> 208 <h2>Build Properties:</h2>
193 209
194 <table class="info BuildProperties" width="100%"> 210 <table class="info BuildProperties" width="100%">
195 <tr><th>Name</th><th>Value</th><th>Source</th></tr> 211 <tr><th>Name</th><th>Value</th><th>Source</th></tr>
196 212
197 {% set rietveld_url = [] %} 213 {% set rietveld_url = [] %}
198 {% for p in properties %} 214 {% for p in properties %}
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 {{ change(c.asDict()) }} 279 {{ change(c.asDict()) }}
264 </li> 280 </li>
265 {% else %} 281 {% else %}
266 <li>no changes</li> 282 <li>no changes</li>
267 {% endfor %} 283 {% endfor %}
268 </ol> 284 </ol>
269 </div> 285 </div>
270 {% endif %} 286 {% endif %}
271 287
272 {% endblock %} 288 {% endblock %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698