Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2222)

Unified Diff: appengine/sheriff_o_matic/ui/ct-builder-failure-card.html

Issue 1315693002: SoM: upgrade Polymer from 0.5 to 1.0 Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: get bower_components from polymer_1.0.4 Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/sheriff_o_matic/ui/ct-builder.html ('k') | appengine/sheriff_o_matic/ui/ct-builder-grid.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « appengine/sheriff_o_matic/ui/ct-builder.html ('k') | appengine/sheriff_o_matic/ui/ct-builder-grid.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698