| 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 --><html><head><link rel="import" href="ct-builder.html"> |
| 6 | 6 |
| 7 <link rel="import" href="ct-builder.html"> | 7 <dom-module id="ct-builder-failure-card"> |
| 8 | 8 <style> |
| 9 <polymer-element name="ct-builder-failure-card" attributes="group" noscript> | |
| 10 <template> | |
| 11 <style> | |
| 12 :host { | 9 :host { |
| 13 display: block; | 10 display: block; |
| 14 } | 11 } |
| 15 div { | 12 div { |
| 16 margin-bottom: 10px; | 13 margin-bottom: 10px; |
| 17 } | 14 } |
| 18 </style> | 15 </style> |
| 16 <template> |
| 19 <div> | 17 <div> |
| 20 <ct-builder builder="{{ group.builder }}"></ct-builder> | 18 <ct-builder builder="{{ group.builder }}"></ct-builder> |
| 21 {{ group.failure.state == 'building' ? 'running' : group.failure.state }} | 19 <span>{{computeExpression1(group)}}</span> |
| 22 for {{ group.failure.hoursSinceLastUpdate }} hours. | 20 for <span>{{ group.failure.hoursSinceLastUpdate }}</span> hours. |
| 23 </div> | 21 </div> |
| 24 <div> | 22 <div> |
| 25 {{ group.failure.pendingBuilds }} pending builds. | 23 <span>{{ group.failure.pendingBuilds }}</span> pending builds. |
| 26 </div> | 24 </div> |
| 27 </template> | 25 </template> |
| 28 </polymer-element> | 26 <script> |
| 27 Polymer({ |
| 28 is: 'ct-builder-failure-card', |
| 29 properties: { group: { notify: true } }, |
| 30 computeExpression1: function (group) { |
| 31 return group.failure.state == 'building' ? 'running' : group.failure.sta
te; |
| 32 } |
| 33 }); |
| 34 </script> |
| 35 </dom-module> |
| 29 | 36 |
| 30 | 37 |
| OLD | NEW |