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

Side by Side Diff: milo/appengine/frontend/expectations/swarming.build-build-unicode.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 Running 8 Running
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-Hidden"> 88 <li class="verbosity-Hidden">
87 <div class="status-Running result"> 89 <div class="status-Running result">
88 <b>Steps</b> 90 <b>Steps</b>
89 <span style="float:right" 91 <span style="float:right"
90 class="duration" 92 class="duration"
91 data-starttime="2016-03-14T10:00:01Z" 93 data-starttime="2016-03-14T10:00:01Z"
92 data-endtime="0001-01-01T00:00:00Z"> 94 data-endtime="0001-01-01T00:00:00Z">
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 </td></tr> 237 </td></tr>
236 </table> 238 </table>
237 239
238 </div> 240 </div>
239 241
240 242
241 </div> 243 </div>
242 </div> 244 </div>
243 <script language="javascript"> 245 <script language="javascript">
244 $(document).ready(function() { 246 $(document).ready(function() {
245 var check = function(checked) { 247
248 var check = function(filter) {
246 var things = $("#steps"); 249 var things = $("#steps");
247 if (checked) { 250 if (filter == "fail") {
248 $("#steps").removeClass("hide"); 251 $("#steps").removeClass("standard");
252 $("#steps").removeClass("all");
253 $("#steps").addClass("fail");
254 } else if (filter == "all") {
255 $("#steps").removeClass("standard");
256 $("#steps").addClass("all");
257 $("#steps").removeClass("fail");
249 } else { 258 } else {
250 $("#steps").addClass("hide"); 259
251 } 260 $("#steps").removeClass("all");
252 var numHidden = $(".verbosity-Hidden").length; 261 $("#steps").addClass("standard");
253 if (numHidden > 0) { 262 $("#steps").removeClass("fail");
254 $("#numHidden").text("(" + numHidden + " hidden)");
255 } else {
256 $("#numHidden").text("");
257 } 263 }
258 }; 264 };
259 265
260 check($("#showHidden").is(":checked")); 266 check($("#showFail").is(":checked"), "standard");
261 $("#showHidden").click(function(e) { 267
262 check($(this).is(":checked")); 268 $("#showFail").click(function(e) {
269 check("fail");
270 });
271 $("#showStandard").click(function(e) {
272 check("standard");
273 });
274 $("#showAll").click(function(e) {
275 check("all");
263 }); 276 });
264 }); 277 });
265 </script> 278 </script>
266 279
267 <footer> 280 <footer>
268 <hr> 281 <hr>
269 <a href="https://github.com/luci">luci</a>, 282 <a href="https://github.com/luci">luci</a>,
270 working for the <a href="https://chromium.org/">Chromium</a> project.<br> 283 working for the <a href="https://chromium.org/">Chromium</a> project.<br>
271 Page built: <b><span class="local-time" data-timestamp="-6792498672871">Satu rday, 03-Feb-01 04:05:06 UTC</span></b> 284 Page built: <b><span class="local-time" data-timestamp="-6792498672871">Satu rday, 03-Feb-01 04:05:06 UTC</span></b>
272 </footer> 285 </footer>
(...skipping 20 matching lines...) Expand all
293 <script> 306 <script>
294 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||functio n(){ 307 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||functio n(){
295 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createEleme nt(o), 308 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createEleme nt(o),
296 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefo re(a,m) 309 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefo re(a,m)
297 })(window,document,'script','https://www.google-analytics.com/analytics. js','ga'); 310 })(window,document,'script','https://www.google-analytics.com/analytics. js','ga');
298 311
299 ga('create', 'UA-12345-01', 'auto'); 312 ga('create', 'UA-12345-01', 'auto');
300 ga('send', 'pageview'); 313 ga('send', 'pageview');
301 </script> 314 </script>
302 315
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698