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

Side by Side Diff: appengine/sheriff_o_matic/model/tree-status.html

Issue 1315693002: SoM: upgrade Polymer from 0.5 to 1.0 Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: get bower_components from polymer_1.0.4 Created 5 years, 4 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 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
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>
OLDNEW
« no previous file with comments | « appengine/sheriff_o_matic/model/ct-rotations.html ('k') | appengine/sheriff_o_matic/ui/ct-alert-card.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698