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

Side by Side Diff: milo/appengine/frontend/expectations/swarming.build-build-patch-failure.html

Issue 2886353002: Milo: Add an option to hide green steps (Closed)
Patch Set: Created 3 years, 7 months 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 1
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 3
4 <html lang="en"> 4 <html lang="en">
5 <meta charset="utf-8"> 5 <meta charset="utf-8">
6 <title> 6 <title>
7 7
8 Failed 8 Failed
9 9
10 - 10 -
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 71
72 72
73 </ul> 73 </ul>
74 74
75 75
76 76
77 77
78 78
79 <h2>Steps and Logfiles:</h2> 79 <h2>Steps and Logfiles:</h2>
80 <input type="checkbox" id="showHidden"> 80 Show:
81 <label for="showHidden">Show hidden <span id="numHidden"></span></label> 81 <input type="radio" name="hider" id="showAll"><label for="showAll">All</ label>
82 <ol id="steps" class="hide"> 82 <input type="radio" name="hider" id="showStandard" checked><label for="s howStandard">Standard</label>
83 <input type="radio" name="hider" id="showFail"><label for="showFail">Fai lure</label>
84 <ol id="steps" class="standard">
83 85
84 86
85 87
86 <li class="verbosity-Interesting"> 88 <li class="verbosity-Interesting">
87 <div class="status-Failure result"> 89 <div class="status-Failure result">
88 <b>Steps</b> 90 <b>Steps</b>
89 91
90 </div> 92 </div>
91 <ul> 93 <ul>
92 94
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 </td></tr> 342 </td></tr>
341 </table> 343 </table>
342 344
343 </div> 345 </div>
344 346
345 347
346 </div> 348 </div>
347 </div> 349 </div>
348 <script language="javascript"> 350 <script language="javascript">
349 $(document).ready(function() { 351 $(document).ready(function() {
350 var check = function(checked) { 352
353 var check = function(filter) {
351 var things = $("#steps"); 354 var things = $("#steps");
352 if (checked) { 355 if (filter == "fail") {
353 $("#steps").removeClass("hide"); 356 $("#steps").removeClass("standard");
357 $("#steps").removeClass("all");
358 $("#steps").addClass("fail");
359 } else if (filter == "all") {
360 $("#steps").removeClass("standard");
361 $("#steps").addClass("all");
362 $("#steps").removeClass("fail");
354 } else { 363 } else {
355 $("#steps").addClass("hide"); 364
356 } 365 $("#steps").removeClass("all");
357 var numHidden = $(".verbosity-Hidden").length; 366 $("#steps").addClass("standard");
358 if (numHidden > 0) { 367 $("#steps").removeClass("fail");
359 $("#numHidden").text("(" + numHidden + " hidden)");
360 } else {
361 $("#numHidden").text("");
362 } 368 }
363 }; 369 };
364 370
365 check($("#showHidden").is(":checked")); 371 check($("#showFail").is(":checked"), "standard");
366 $("#showHidden").click(function(e) { 372
367 check($(this).is(":checked")); 373 $("#showFail").click(function(e) {
374 check("fail");
375 });
376 $("#showStandard").click(function(e) {
377 check("standard");
378 });
379 $("#showAll").click(function(e) {
380 check("all");
368 }); 381 });
369 }); 382 });
370 </script> 383 </script>
371 384
372 <footer> 385 <footer>
373 <hr> 386 <hr>
374 <a href="https://github.com/luci">luci</a>, 387 <a href="https://github.com/luci">luci</a>,
375 working for the <a href="https://chromium.org/">Chromium</a> project.<br> 388 working for the <a href="https://chromium.org/">Chromium</a> project.<br>
376 Page built: <b><span class="local-time" data-timestamp="-6792498672871">Satu rday, 03-Feb-01 04:05:06 UTC</span></b> 389 Page built: <b><span class="local-time" data-timestamp="-6792498672871">Satu rday, 03-Feb-01 04:05:06 UTC</span></b>
377 </footer> 390 </footer>
(...skipping 20 matching lines...) Expand all
398 <script> 411 <script>
399 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||functio n(){ 412 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||functio n(){
400 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createEleme nt(o), 413 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createEleme nt(o),
401 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefo re(a,m) 414 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefo re(a,m)
402 })(window,document,'script','https://www.google-analytics.com/analytics. js','ga'); 415 })(window,document,'script','https://www.google-analytics.com/analytics. js','ga');
403 416
404 ga('create', 'UA-12345-01', 'auto'); 417 ga('create', 'UA-12345-01', 'auto');
405 ga('send', 'pageview'); 418 ga('send', 'pageview');
406 </script> 419 </script>
407 420
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698