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/core-collapse/core-collapse.html"> | |
8 <link rel="import" href="../bower_components/paper-toggle-button/paper-toggle-bu tton.html"> | |
7 <link rel="import" href="ct-failure-card.html"> | 9 <link rel="import" href="ct-failure-card.html"> |
8 | 10 |
9 <polymer-element name="ct-failure-stream" attributes="groups commits tree" noscr ipt> | 11 <polymer-element name="ct-failure-stream" attributes="groups commits tree" noscr ipt> |
10 <template> | 12 <template> |
11 <style> | 13 <style> |
12 :host { | 14 :host { |
13 display: block; | 15 display: block; |
14 } | 16 } |
15 | 17 |
16 ct-failure-card { | 18 ct-failure-card { |
17 margin: 5px; | 19 margin: 5px; |
18 padding: 5px; | 20 padding: 5px; |
19 border-top: 1px solid lightgrey; | 21 border-top: 1px solid lightgrey; |
20 } | 22 } |
21 </style> | 23 </style> |
22 <template repeat="{{failures in groups}}"> | 24 Show snoozed failures: <paper-toggle-button checked="{{ showSnoozed }}"></pa per-toggle-button> |
ojan
2014/08/06 04:03:01
We should only show this if there are any snoozed
dstockwell
2014/08/06 06:55:13
I've left them in the stream (but dimmed) for this
| |
23 <ct-failure-card failures="{{ failures }}" commits="{{ commits }}" tree="{ { tree }}"></ct-failure-card> | 25 <core-collapse opened="{{showSnoozed}}" duration="0.3"> |
26 <template repeat="{{ group in groups }}"> | |
27 <template if="{{ group.isSnoozed }}"> | |
28 <ct-failure-card group="{{ group }}" commits="{{ commits }}" tree="{{ tree }}"></ct-failure-card> | |
29 </template> | |
30 </template> | |
31 </core-collapse> | |
32 | |
33 <template repeat="{{ group in groups }}"> | |
34 <template if="{{ !group.isSnoozed }}"> | |
35 <ct-failure-card group="{{ group }}" commits="{{ commits }}" tree="{{ tr ee }}"></ct-failure-card> | |
36 </template> | |
24 </template> | 37 </template> |
25 </template> | 38 </template> |
26 </polymer-element> | 39 </polymer-element> |
OLD | NEW |