| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright 2016 The LUCI Authors. All rights reserved. | 2 Copyright 2016 The LUCI Authors. All rights reserved. |
| 3 Use of this source code is governed under the Apache License, Version 2.0 | 3 Use of this source code is governed under the Apache License, Version 2.0 |
| 4 that can be found in the LICENSE file. | 4 that can be found in the LICENSE file. |
| 5 | 5 |
| 6 This in an HTML Import-able file that contains the definition | 6 This in an HTML Import-able file that contains the definition |
| 7 of the following elements: | 7 of the following elements: |
| 8 | 8 |
| 9 <task-page> | 9 <task-page> |
| 10 | 10 |
| (...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 966 return result && result.cipd_pins && result.cipd_pins.packages; | 966 return result && result.cipd_pins && result.cipd_pins.packages; |
| 967 }, | 967 }, |
| 968 | 968 |
| 969 _highlight: function(request, key) { | 969 _highlight: function(request, key) { |
| 970 var highlight = false; | 970 var highlight = false; |
| 971 request.forEach(function (dim) { | 971 request.forEach(function (dim) { |
| 972 if (dim.key == key) { | 972 if (dim.key == key) { |
| 973 highlight = true; | 973 highlight = true; |
| 974 } | 974 } |
| 975 }); | 975 }); |
| 976 return highlight ? "Yellow" : "White"; | 976 return highlight ? "LightYellow" : "White"; |
| 977 }, | 977 }, |
| 978 | 978 |
| 979 _internalClass: function(failure) { | 979 _internalClass: function(failure) { |
| 980 if (failure) { | 980 if (failure) { |
| 981 return "exception"; | 981 return "exception"; |
| 982 } | 982 } |
| 983 return ""; | 983 return ""; |
| 984 }, | 984 }, |
| 985 | 985 |
| 986 _isolateLink: function(ref) { | 986 _isolateLink: function(ref) { |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1172 | 1172 |
| 1173 this._getJsonAsync("_other_running", "/api/swarming/v1/tasks/count", "_b
usyRunningCount", this._auth_headers, taskCountParams); | 1173 this._getJsonAsync("_other_running", "/api/swarming/v1/tasks/count", "_b
usyRunningCount", this._auth_headers, taskCountParams); |
| 1174 // change running to pending | 1174 // change running to pending |
| 1175 taskCountParams.state = ["PENDING"]; | 1175 taskCountParams.state = ["PENDING"]; |
| 1176 this._getJsonAsync("_other_pending", "/api/swarming/v1/tasks/count", "_b
usyPendingCount", this._auth_headers, taskCountParams); | 1176 this._getJsonAsync("_other_pending", "/api/swarming/v1/tasks/count", "_b
usyPendingCount", this._auth_headers, taskCountParams); |
| 1177 } | 1177 } |
| 1178 }); | 1178 }); |
| 1179 })(); | 1179 })(); |
| 1180 </script> | 1180 </script> |
| 1181 </dom-module> | 1181 </dom-module> |
| OLD | NEW |