| 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 --> |
| 6 | 6 |
| 7 <link rel="import" href="../bower_components/paper-button/paper-button.html"> | 7 <link rel="import" href="../bower_components/paper-button/paper-button.html"> |
| 8 <link rel="import" href="../model/tree-status.html"> | 8 <link rel="import" href="../model/tree-status.html"> |
| 9 <link rel="import" href="ct-failure-stream.html"> | 9 <link rel="import" href="ct-failure-stream.html"> |
| 10 <link rel="import" href="ct-last-updated.html"> | 10 <link rel="import" href="ct-last-updated.html"> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 margin: 0; | 27 margin: 0; |
| 28 padding: 0; | 28 padding: 0; |
| 29 } | 29 } |
| 30 | 30 |
| 31 .toolbar { | 31 .toolbar { |
| 32 display: flex; | 32 display: flex; |
| 33 justify-content: space-between; | 33 justify-content: space-between; |
| 34 align-items: baseline; | 34 align-items: baseline; |
| 35 padding: 0 5px; | 35 padding: 0 5px; |
| 36 } | 36 } |
| 37 |
| 38 .failure-group-header { |
| 39 padding: 0 5px; |
| 40 } |
| 37 </style> | 41 </style> |
| 38 <div class="toolbar"> | 42 <div class="toolbar"> |
| 39 <ct-revision-details id="revisionDetails" builderLatestRevisions="{{ failu
res.builderLatestRevisions }}" commitLog="{{ commitLog }}" tree="{{ tree }}"></c
t-revision-details> | 43 <ct-revision-details id="revisionDetails" builderLatestRevisions="{{ failu
res.builderLatestRevisions }}" commitLog="{{ commitLog }}" tree="{{ tree }}"></c
t-revision-details> |
| 40 <a href="https://code.google.com/p/chromium/wiki/UsefulURLs">Useful URLs</
a> | 44 <a href="https://code.google.com/p/chromium/wiki/UsefulURLs">Useful URLs</
a> |
| 41 </div> | 45 </div> |
| 42 <ct-tree-status status="{{ treeStatuses['chromium'] }}" state="{{ treeStatus
es['chromium'].status }}"></ct-tree-status> | 46 <ct-tree-status status="{{ treeStatuses['chromium'] }}" state="{{ treeStatus
es['chromium'].status }}"></ct-tree-status> |
| 43 <ct-tree-status status="{{ treeStatuses['blink'] }}" state="{{ treeStatuses[
'blink'].status }}"></ct-tree-status> | 47 <ct-tree-status status="{{ treeStatuses['blink'] }}" state="{{ treeStatuses[
'blink'].status }}"></ct-tree-status> |
| 44 <ct-party-time failures="{{ failures.failures[tree].length == 0 }}"></ct-par
ty-time> | 48 <ct-party-time failures="{{ failures.failures[tree].length == 0 }}"></ct-par
ty-time> |
| 45 <ct-failure-stream category="default" groups="{{ failures.failures[tree] }}"
commitLog="{{ commitLog }}" tree="{{ tree }}"></ct-failure-stream> | 49 <ct-failure-stream category="default" groups="{{ failures.failures[tree] }}"
commitLog="{{ commitLog }}" tree="{{ tree }}"></ct-failure-stream> |
| 50 <span class="failure-group-header">Failures that have only happened once (on
one bot):</span> |
| 51 <ct-failure-stream category="failedOnce" groups="{{ failures.failures[tree]
}}" commitLog="{{ commitLog }}" tree="{{ tree }}"></ct-failure-stream> |
| 52 <span class="failure-group-header">Snoozed failures:</span> |
| 46 <ct-failure-stream category="snoozed" groups="{{ failures.failures[tree] }}"
commitLog="{{ commitLog }}" tree="{{ tree }}"></ct-failure-stream> | 53 <ct-failure-stream category="snoozed" groups="{{ failures.failures[tree] }}"
commitLog="{{ commitLog }}" tree="{{ tree }}"></ct-failure-stream> |
| 47 </template> | 54 </template> |
| 48 <script> | 55 <script> |
| 49 (function() { | 56 (function() { |
| 50 Polymer({ | 57 Polymer({ |
| 51 tree: '', | 58 tree: '', |
| 52 | 59 |
| 53 created: function() { | 60 created: function() { |
| 54 this.treeStatuses = {}; | 61 this.treeStatuses = {}; |
| 55 var projects = ['chromium', 'blink']; | 62 var projects = ['chromium', 'blink']; |
| 56 for (var i = 0; i < projects.length; i++) { | 63 for (var i = 0; i < projects.length; i++) { |
| 57 this.treeStatuses[projects[i]] = new TreeStatus(projects[i]); | 64 this.treeStatuses[projects[i]] = new TreeStatus(projects[i]); |
| 58 } | 65 } |
| 59 }, | 66 }, |
| 60 | 67 |
| 61 attached: function() { | 68 attached: function() { |
| 62 this.update(); | 69 this.update(); |
| 63 }, | 70 }, |
| 64 | 71 |
| 65 update: function() { | 72 update: function() { |
| 66 // FIXME: These shouldn't update if there's already an update in progres
s. | 73 // FIXME: These shouldn't update if there's already an update in progres
s. |
| 67 Object.keys(this.treeStatuses, function(tree, status) { | 74 Object.keys(this.treeStatuses, function(tree, status) { |
| 68 status.update(); | 75 status.update(); |
| 69 }); | 76 }); |
| 70 }, | 77 }, |
| 71 }); | 78 }); |
| 72 })(); | 79 })(); |
| 73 </script> | 80 </script> |
| 74 </polymer-element> | 81 </polymer-element> |
| OLD | NEW |