Chromium Code Reviews| 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 margin-bottom: 5px; | 19 margin-bottom: 5px; |
| 18 padding: 5px; | 20 padding: 5px; |
| 19 border-bottom: 1px solid lightgrey; | 21 border-bottom: 1px solid lightgrey; |
| 22 display: flex; | |
| 20 } | 23 } |
| 21 | 24 |
| 22 /* FIXME: Don't use before hax to add labels */ | 25 /* FIXME: Don't use before hax to add labels */ |
| 23 ct-failure-card:first-of-type::before { | 26 :host>div:first-of-type::before { |
|
ojan
2014/09/11 01:50:04
Spaced around the >
| |
| 24 content: "{{ title }}:"; | 27 content: "{{ title }}:"; |
| 25 display: block; | 28 display: block; |
| 26 font-weight: bold; | 29 font-weight: bold; |
| 27 font-size: 18px; | 30 font-size: 18px; |
| 28 padding: 5px; | 31 padding: 5px; |
| 29 background-color: #f5f5f5; | 32 background-color: #f5f5f5; |
| 30 margin-bottom: 5px; | 33 margin-bottom: 5px; |
| 31 } | 34 } |
| 35 | |
| 36 .snoozed { | |
| 37 opacity: 0.5; | |
| 38 } | |
| 32 </style> | 39 </style> |
| 33 <template repeat="{{ group in groups }}"> | 40 <template repeat="{{ group in groups }}"> |
| 34 <template if="{{ group.category == category }}"> | 41 <template if="{{ group.category == category }}"> |
| 35 <ct-failure-card group="{{ group }}" commitLog="{{ commitLog }}" tree="{ { tree }}"></ct-failure-card> | 42 <div> <!-- FIXME: Remove when we have a better title solution. --> |
| 43 <div class="card"> | |
| 44 <template if="{{ group.data.category == 'sheriff' }}"> | |
| 45 <ct-bot-failure-card class='{{ { snoozed: group.isSnoozed } | toke nList }}' group="{{ group.data }}" commitLog="{{ commitLog }}" builderList="{{ _ builderList }}"></ct-bot-failure-card> | |
|
ojan
2014/09/11 01:50:04
You moved the builder list down into the widget bu
| |
| 46 </template> | |
| 47 <template if="{{ group.data.category == 'builder' }}"> | |
| 48 <ct-builder-failure-card class='{{ { snoozed: group.isSnoozed } | tokenList }}' group="{{ group.data }}" builderList="{{ _builderList }}"></ct-bui lder-failure-card> | |
| 49 </template> | |
| 50 <template if="{{ group.data.category == 'trooper' }}"> | |
| 51 <ct-trooper-card class='{{ { snoozed: group.isSnoozed } | tokenLis t }}' group="{{ group.data }}"></ct-trooper-card> | |
| 52 </template> | |
| 53 <ct-failure-card-buttons group="{{ group }}" bug="{{ bug }}"></ct-fa ilure-card-buttons> | |
| 54 </div> | |
| 55 </div> | |
| 36 </template> | 56 </template> |
| 37 </template> | 57 </template> |
| 38 </template> | 58 </template> |
| 39 </polymer-element> | 59 </polymer-element> |
| OLD | NEW |