| Index: appengine/sheriff_o_matic/ui/ct-builder-failure-card.html
|
| diff --git a/appengine/sheriff_o_matic/ui/ct-builder-failure-card.html b/appengine/sheriff_o_matic/ui/ct-builder-failure-card.html
|
| index 6241c4aef1babba6b6c977be32b3bede97052ea7..dd257d3f937f203f10b43d77587448e514a7eaba 100644
|
| --- a/appengine/sheriff_o_matic/ui/ct-builder-failure-card.html
|
| +++ b/appengine/sheriff_o_matic/ui/ct-builder-failure-card.html
|
| @@ -2,13 +2,10 @@
|
| Copyright 2014 The Chromium Authors. All rights reserved.
|
| Use of this source code is governed by a BSD-style license that can be
|
| found in the LICENSE file.
|
| --->
|
| +--><html><head><link rel="import" href="ct-builder.html">
|
|
|
| -<link rel="import" href="ct-builder.html">
|
| -
|
| -<polymer-element name="ct-builder-failure-card" attributes="group" noscript>
|
| - <template>
|
| - <style>
|
| +<dom-module id="ct-builder-failure-card">
|
| + <style>
|
| :host {
|
| display: block;
|
| }
|
| @@ -16,15 +13,25 @@ found in the LICENSE file.
|
| margin-bottom: 10px;
|
| }
|
| </style>
|
| + <template>
|
| <div>
|
| <ct-builder builder="{{ group.builder }}"></ct-builder>
|
| - {{ group.failure.state == 'building' ? 'running' : group.failure.state }}
|
| - for {{ group.failure.hoursSinceLastUpdate }} hours.
|
| + <span>{{computeExpression1(group)}}</span>
|
| + for <span>{{ group.failure.hoursSinceLastUpdate }}</span> hours.
|
| </div>
|
| <div>
|
| - {{ group.failure.pendingBuilds }} pending builds.
|
| + <span>{{ group.failure.pendingBuilds }}</span> pending builds.
|
| </div>
|
| </template>
|
| -</polymer-element>
|
| + <script>
|
| + Polymer({
|
| + is: 'ct-builder-failure-card',
|
| + properties: { group: { notify: true } },
|
| + computeExpression1: function (group) {
|
| + return group.failure.state == 'building' ? 'running' : group.failure.state;
|
| + }
|
| + });
|
| + </script>
|
| +</dom-module>
|
|
|
|
|
|
|