| 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="ct-builder-grid.html"> | 7 <link rel="import" href="ct-builder-grid.html"> |
| 8 <link rel="import" href="ct-commit-list.html"> | 8 <link rel="import" href="ct-commit-list.html"> |
| 9 <link rel="import" href="ct-test-list.html"> | 9 <link rel="import" href="ct-test-list.html"> |
| 10 | 10 |
| 11 <polymer-element name="ct-bot-failure-card" attributes="group builderList" noscr
ipt> | 11 <polymer-element name="ct-bot-failure-card" attributes="group commitLog" noscrip
t> |
| 12 <template> | 12 <template> |
| 13 <style> | 13 <style> |
| 14 :host { |
| 15 display: flex; |
| 16 } |
| 17 |
| 14 ct-builder-grid { | 18 ct-builder-grid { |
| 15 margin-right: 10px; | 19 margin-right: 10px; |
| 16 width: 250px; | 20 width: 250px; |
| 17 } | 21 } |
| 18 | 22 |
| 19 ct-commit-list { | 23 ct-commit-list { |
| 20 margin-top: 15px; | 24 margin-top: 15px; |
| 21 } | 25 } |
| 22 | 26 |
| 23 #failure { | 27 #failure { |
| 24 flex: 1; | 28 flex: 1; |
| 25 } | 29 } |
| 26 </style> | 30 </style> |
| 27 <ct-builder-grid builderList="{{ builderList }}"></ct-builder-grid> | 31 <ct-builder-grid builderList="{{ group.builderList }}"></ct-builder-grid> |
| 28 <div id="failure"> | 32 <div id="failure"> |
| 29 <ct-test-list tests="{{ group.failures }}" tree="{{ tree }}"></ct-test-lis
t> | 33 <ct-test-list tests="{{ group.failures }}" tree="{{ tree }}"></ct-test-lis
t> |
| 30 <ct-commit-list commitList="{{ group.commitList }}"></ct-commit-list> | 34 <ct-commit-list commitList="{{ group.commitList }}"></ct-commit-list> |
| 31 </div> | 35 </div> |
| 32 </template> | 36 </template> |
| 37 <script> |
| 38 Polymer({ |
| 39 group: null, |
| 40 commitLog: null, |
| 41 _builderList: null, |
| 42 |
| 43 observe: { |
| 44 group: '_updateCommitList', |
| 45 commitLog: '_updateCommitList', |
| 46 }, |
| 47 |
| 48 _updateCommitList: function() { |
| 49 if (this.group && this.group.commitList && this.commitLog) |
| 50 this.group.commitList.update(this.commitLog); |
| 51 }, |
| 52 }); |
| 53 </script> |
| 33 </polymer-element> | 54 </polymer-element> |
| 34 | 55 |
| 35 | 56 |
| OLD | NEW |