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

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

Issue 2484593002: Adding gantt chart to Build Status page on Buildbot Masters (Closed)
Patch Set: Addressing comments from dsansome@ 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 <div class="bbp_placeholder" 21 <div class="bbp_placeholder"
11 id="{{ b.getProperty('mastername') }}:{{ b.getBuilder().getName() }}:{{ 22 id="{{ b.getProperty('mastername') }}:{{ b.getBuilder().getName() }}:{{
12 b.getNumber() }}"> 23 b.getNumber() }}">
13 </div> 24 </div>
14 </h1> 25 </h1>
15 26
16 <div class="column"> 27 <div class="column">
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 {% endif %} 184 {% endif %}
174 </li> 185 </li>
175 {% endfor %} 186 {% endfor %}
176 </ul> 187 </ul>
177 {% endfor %} 188 {% endfor %}
178 189
179 {# Close out all open indentation sections. #} 190 {# Close out all open indentation sections. #}
180 {% for _ in range(-1, nest_level) %} 191 {% for _ in range(-1, nest_level) %}
181 </li></ol> 192 </li></ol>
182 {% endfor %} 193 {% endfor %}
183 194 <div>
195 <button type="button" onclick="toggleChart(rawSteps);">
196 SHOW/HIDE Gantt Chart
197 </button>
198 <div id="chart_div"></div>
199 </div>
184 </div> 200 </div>
185 <div class="column"> 201 <div class="column">
186 202
187 <h2>Build Properties:</h2> 203 <h2>Build Properties:</h2>
188 204
189 <table class="info BuildProperties" width="100%"> 205 <table class="info BuildProperties" width="100%">
190 <tr><th>Name</th><th>Value</th><th>Source</th></tr> 206 <tr><th>Name</th><th>Value</th><th>Source</th></tr>
191 207
192 {% set rietveld_url = [] %} 208 {% set rietveld_url = [] %}
193 {% for p in properties %} 209 {% for p in properties %}
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 {{ change(c.asDict()) }} 274 {{ change(c.asDict()) }}
259 </li> 275 </li>
260 {% else %} 276 {% else %}
261 <li>no changes</li> 277 <li>no changes</li>
262 {% endfor %} 278 {% endfor %}
263 </ol> 279 </ol>
264 </div> 280 </div>
265 {% endif %} 281 {% endif %}
266 282
267 {% endblock %} 283 {% endblock %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698