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 commitLog tree cate
gory" noscript> | 9 <polymer-element name="ct-failure-stream" attributes="groups commitLog tree cate
gory title" 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-bottom: 5px; | 17 margin-bottom: 5px; |
18 padding: 5px; | 18 padding: 5px; |
19 border-top: 1px solid lightgrey; | 19 border-bottom: 1px solid lightgrey; |
| 20 } |
| 21 |
| 22 /* FIXME: Don't use before hax to add labels */ |
| 23 ct-failure-card:first-of-type::before { |
| 24 content: "{{ title }}:"; |
| 25 display: block; |
| 26 font-weight: bold; |
| 27 font-size: 18px; |
| 28 padding: 5px; |
| 29 background-color: #f5f5f5; |
| 30 margin-bottom: 5px; |
20 } | 31 } |
21 </style> | 32 </style> |
22 <!-- FIXME: Show a label based on the category when the filtered stream isn'
t empty --> | |
23 <template repeat="{{ group in groups }}"> | 33 <template repeat="{{ group in groups }}"> |
24 <template if="{{ group.category == category }}"> | 34 <template if="{{ group.category == category }}"> |
25 <ct-failure-card group="{{ group }}" commitLog="{{ commitLog }}" tree="{
{ tree }}"></ct-failure-card> | 35 <ct-failure-card group="{{ group }}" commitLog="{{ commitLog }}" tree="{
{ tree }}"></ct-failure-card> |
26 </template> | 36 </template> |
27 </template> | 37 </template> |
28 </template> | 38 </template> |
29 </polymer-element> | 39 </polymer-element> |
OLD | NEW |