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

Side by Side Diff: masters/master.tryserver.blink/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 22
12 <div class="column"> 23 <div class="column">
13 24
14 {% if not b.isFinished() %} 25 {% if not b.isFinished() %}
15 <h2>Build In Progress:</h2> 26 <h2>Build In Progress:</h2>
16 27
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 </li> 171 </li>
161 {% endfor %} 172 {% endfor %}
162 </ul> 173 </ul>
163 </li> 174 </li>
164 {% endfor %} 175 {% endfor %}
165 176
166 {# Close out all open indentation sections. #} 177 {# Close out all open indentation sections. #}
167 {% for _ in range(-1, nest_level) %} 178 {% for _ in range(-1, nest_level) %}
168 </li></ol> 179 </li></ol>
169 {% endfor %} 180 {% endfor %}
170 181 <div>
182 <button type="button" onclick="toggleChart(rawSteps);">
183 SHOW/HIDE Gantt Chart
184 </button>
185 <div id="chart_div"></div>
186 </div>
171 </div> 187 </div>
172 <div class="column"> 188 <div class="column">
173 189
174 <h2>Build Properties:</h2> 190 <h2>Build Properties:</h2>
175 191
176 <table class="info BuildProperties" width="100%"> 192 <table class="info BuildProperties" width="100%">
177 <tr><th>Name</th><th>Value</th><th>Source</th></tr> 193 <tr><th>Name</th><th>Value</th><th>Source</th></tr>
178 194
179 {% for p in properties %} 195 {% for p in properties %}
180 <tr class="{{ loop.cycle('alt', '') }}"> 196 <tr class="{{ loop.cycle('alt', '') }}">
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 {{ change(c.asDict()) }} 253 {{ change(c.asDict()) }}
238 </li> 254 </li>
239 {% else %} 255 {% else %}
240 <li>no changes</li> 256 <li>no changes</li>
241 {% endfor %} 257 {% endfor %}
242 </ol> 258 </ol>
243 </div> 259 </div>
244 {% endif %} 260 {% endif %}
245 261
246 {% endblock %} 262 {% endblock %}
OLDNEW
« no previous file with comments | « masters/master.chromiumos/templates/build.html ('k') | masters/master.tryserver.chromium.linux/public_html/gantt_chart.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698