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

Side by Side Diff: milo/appengine/frontend/expectations/swarming.build-build-running-logdog-no-annotation-stream.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 Pending 8 Pending
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 88
87 89
88 90
89 <li class="verbosity-Normal"> 91 <li class="verbosity-Normal">
90 <div class="status-Running result"> 92 <div class="status-Running result">
91 <b>Waiting...</b> 93 <b>Waiting...</b>
92 94
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 </td></tr> 140 </td></tr>
139 </table> 141 </table>
140 142
141 </div> 143 </div>
142 144
143 145
144 </div> 146 </div>
145 </div> 147 </div>
146 <script language="javascript"> 148 <script language="javascript">
147 $(document).ready(function() { 149 $(document).ready(function() {
148 var check = function(checked) { 150
151 var check = function(filter) {
149 var things = $("#steps"); 152 var things = $("#steps");
150 if (checked) { 153 if (filter == "fail") {
151 $("#steps").removeClass("hide"); 154 $("#steps").removeClass("standard");
155 $("#steps").removeClass("all");
156 $("#steps").addClass("fail");
157 } else if (filter == "all") {
158 $("#steps").removeClass("standard");
159 $("#steps").addClass("all");
160 $("#steps").removeClass("fail");
152 } else { 161 } else {
153 $("#steps").addClass("hide"); 162
154 } 163 $("#steps").removeClass("all");
155 var numHidden = $(".verbosity-Hidden").length; 164 $("#steps").addClass("standard");
156 if (numHidden > 0) { 165 $("#steps").removeClass("fail");
157 $("#numHidden").text("(" + numHidden + " hidden)");
158 } else {
159 $("#numHidden").text("");
160 } 166 }
161 }; 167 };
162 168
163 check($("#showHidden").is(":checked")); 169 check($("#showFail").is(":checked"), "standard");
164 $("#showHidden").click(function(e) { 170
165 check($(this).is(":checked")); 171 $("#showFail").click(function(e) {
172 check("fail");
173 });
174 $("#showStandard").click(function(e) {
175 check("standard");
176 });
177 $("#showAll").click(function(e) {
178 check("all");
166 }); 179 });
167 }); 180 });
168 </script> 181 </script>
169 182
170 <footer> 183 <footer>
171 <hr> 184 <hr>
172 <a href="https://github.com/luci">luci</a>, 185 <a href="https://github.com/luci">luci</a>,
173 working for the <a href="https://chromium.org/">Chromium</a> project.<br> 186 working for the <a href="https://chromium.org/">Chromium</a> project.<br>
174 Page built: <b><span class="local-time" data-timestamp="-6792498672871">Satu rday, 03-Feb-01 04:05:06 UTC</span></b> 187 Page built: <b><span class="local-time" data-timestamp="-6792498672871">Satu rday, 03-Feb-01 04:05:06 UTC</span></b>
175 </footer> 188 </footer>
(...skipping 20 matching lines...) Expand all
196 <script> 209 <script>
197 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||functio n(){ 210 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||functio n(){
198 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createEleme nt(o), 211 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createEleme nt(o),
199 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefo re(a,m) 212 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefo re(a,m)
200 })(window,document,'script','https://www.google-analytics.com/analytics. js','ga'); 213 })(window,document,'script','https://www.google-analytics.com/analytics. js','ga');
201 214
202 ga('create', 'UA-12345-01', 'auto'); 215 ga('create', 'UA-12345-01', 'auto');
203 ga('send', 'pageview'); 216 ga('send', 'pageview');
204 </script> 217 </script>
205 218
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698