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