Chromium Code Reviews| 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-failure-card.html"> | 7 <link rel="import" href="ct-failure-card.html"> |
| 8 <link rel="import" href="../model/ct-commit-list.html"> | |
| 8 | 9 |
| 9 <polymer-element name="ct-failure-stream" attributes="groups commits tree" noscr ipt> | 10 <polymer-element name="ct-failure-stream" attributes="groups commits tree"> |
| 10 <template> | 11 <template> |
| 11 <style> | 12 <style> |
| 12 :host { | 13 :host { |
| 13 display: block; | 14 display: block; |
| 14 } | 15 } |
| 15 | 16 |
| 16 ct-failure-card { | 17 ct-failure-card { |
| 17 margin: 5px; | 18 margin: 5px; |
| 18 padding: 5px; | 19 padding: 5px; |
| 19 border-top: 1px solid lightgrey; | 20 border-top: 1px solid lightgrey; |
| 20 } | 21 } |
| 21 </style> | 22 </style> |
| 22 <template repeat="{{ group in groups }}"> | 23 <template repeat="{{ group in groups }}"> |
| 23 <ct-failure-card group="{{ group }}" commits="{{ commits }}" tree="{{ tree }}"></ct-failure-card> | 24 <ct-failure-card group="{{ group }}" commitList="{{ _commitList(group) }}" tree="{{ tree }}"></ct-failure-card> |
| 24 </template> | 25 </template> |
| 25 </template> | 26 </template> |
| 27 <script> | |
| 28 Polymer({ | |
| 29 _commitList: function(group) { | |
| 30 return new CTCommitList(group, this.commits); | |
|
ojan
2014/08/12 21:08:36
Not sure if it's better, but CTFailureGroup could
dsinclair
2014/08/15 14:05:04
Done.
| |
| 31 } | |
| 32 }); | |
| 33 </script> | |
| 26 </polymer-element> | 34 </polymer-element> |
| OLD | NEW |