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 | 8 |
9 <polymer-element name="ct-failure-stream" attributes="groups commits tree" noscr ipt> | 9 <polymer-element name="ct-failure-stream" attributes="groups commits tree catego ry" noscript> |
10 <template> | 10 <template> |
11 <style> | 11 <style> |
12 :host { | 12 :host { |
13 display: block; | 13 display: block; |
14 } | 14 } |
15 | 15 |
16 ct-failure-card { | 16 ct-failure-card { |
17 margin: 5px; | 17 margin: 5px; |
18 padding: 5px; | 18 padding: 5px; |
19 border-top: 1px solid lightgrey; | 19 border-top: 1px solid lightgrey; |
20 } | 20 } |
21 </style> | 21 </style> |
22 <!-- FIXME: Show a label based on the category when the filtered stream isn' t empty --> | |
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 <template if="{{ group.category == category }}"> |
25 <ct-failure-card group="{{ group }}" commits="{{ commits }}" tree="{{ tr ee }}"></ct-failure-card> | |
ojan
2014/08/11 03:43:35
Can you also add ct-failure-stream tests? Just som
| |
26 </template> | |
24 </template> | 27 </template> |
25 </template> | 28 </template> |
26 </polymer-element> | 29 </polymer-element> |
OLD | NEW |