| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright 2014 The Chromium Authors. All rights reserved. | 2 Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
| 4 found in the LICENSE file. | 4 found in the LICENSE file. |
| 5 --> | 5 --><html><head><link rel="import" href="../appengine_module/components/net.html"
> |
| 6 | |
| 7 <link rel="import" href="../appengine_module/components/net.html"> | |
| 8 | 6 |
| 9 <script> | 7 <script> |
| 10 function TreeStatus(project) { | 8 function TreeStatus(project) { |
| 11 this.project = project; | 9 this.project = project; |
| 12 this.message = ''; | 10 this.message = ''; |
| 13 this.status = 'unknown'; | 11 this.status = 'unknown'; |
| 14 this.url = "https://{1}-status.appspot.com/".assign(project); | 12 this.url = "https://{1}-status.appspot.com/".assign(project); |
| 15 } | 13 } |
| 16 | 14 |
| 17 TreeStatus.prototype.update = function() { | 15 TreeStatus.prototype.update = function() { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 32 var responseLowerCase = status.message.toLowerCase(); | 30 var responseLowerCase = status.message.toLowerCase(); |
| 33 if (responseLowerCase.indexOf('throttled') != -1) { | 31 if (responseLowerCase.indexOf('throttled') != -1) { |
| 34 this.status = 'throttled'; | 32 this.status = 'throttled'; |
| 35 } else if (responseLowerCase.indexOf("closed") != -1) { | 33 } else if (responseLowerCase.indexOf("closed") != -1) { |
| 36 this.status = 'closed'; | 34 this.status = 'closed'; |
| 37 } else { | 35 } else { |
| 38 this.status = 'unknown'; | 36 this.status = 'unknown'; |
| 39 } | 37 } |
| 40 }; | 38 }; |
| 41 </script> | 39 </script> |
| OLD | NEW |