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-bot-failure-card.html"> |
| 8 <link rel="import" href="ct-builder-failure-card.html"> |
| 9 <link rel="import" href="ct-trooper-card.html"> |
8 | 10 |
9 <polymer-element name="ct-failure-stream" attributes="groups commitLog tree cate
gory title" noscript> | 11 <polymer-element name="ct-failure-stream" attributes="groups commitLog tree cate
gory title" noscript> |
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 .card { |
17 padding: 15px 5px; | 19 padding: 15px 5px; |
18 border-bottom: 1px solid lightgrey; | 20 border-bottom: 1px solid lightgrey; |
| 21 display: flex; |
| 22 } |
| 23 |
| 24 .card > * { |
| 25 flex: 1; |
19 } | 26 } |
20 | 27 |
21 /* FIXME: Don't use before hax to add labels */ | 28 /* FIXME: Don't use before hax to add labels */ |
22 ct-failure-card:first-of-type::before { | 29 :host > div:first-of-type::before { |
23 content: "{{ title }}:"; | 30 content: "{{ title }}:"; |
24 display: block; | 31 display: block; |
25 font-weight: bold; | 32 font-weight: bold; |
26 font-size: 18px; | 33 font-size: 18px; |
27 padding: 5px; | 34 padding: 5px; |
28 background-color: #f5f5f5; | 35 background-color: #f5f5f5; |
29 margin-bottom: 5px; | 36 margin-bottom: 5px; |
30 } | 37 } |
| 38 |
| 39 .snoozed { |
| 40 opacity: 0.5; |
| 41 } |
31 </style> | 42 </style> |
32 <template repeat="{{ group in groups }}"> | 43 <template repeat="{{ group in groups }}"> |
33 <template if="{{ group.category == category }}"> | 44 <template if="{{ group.category == category }}"> |
34 <ct-failure-card group="{{ group }}" commitLog="{{ commitLog }}" tree="{
{ tree }}"></ct-failure-card> | 45 <div> <!-- FIXME: Remove when we have a better title solution. --> |
| 46 <div class="card"> |
| 47 <template if="{{ group.data.category == 'sheriff' }}"> |
| 48 <ct-bot-failure-card class='{{ { snoozed: group.isSnoozed } | toke
nList }}' group="{{ group.data }}" commitLog="{{ commitLog }}"></ct-bot-failure-
card> |
| 49 </template> |
| 50 <template if="{{ group.data.category == 'builder' }}"> |
| 51 <ct-builder-failure-card class='{{ { snoozed: group.isSnoozed } |
tokenList }}' group="{{ group.data }}"></ct-builder-failure-card> |
| 52 </template> |
| 53 <template if="{{ group.data.category == 'trooper' }}"> |
| 54 <ct-trooper-card class='{{ { snoozed: group.isSnoozed } | tokenLis
t }}' group="{{ group.data }}"></ct-trooper-card> |
| 55 </template> |
| 56 <ct-failure-card-buttons group="{{ group }}" bug="{{ bug }}"></ct-fa
ilure-card-buttons> |
| 57 </div> |
| 58 </div> |
35 </template> | 59 </template> |
36 </template> | 60 </template> |
37 </template> | 61 </template> |
38 </polymer-element> | 62 </polymer-element> |
OLD | NEW |