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

Side by Side 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 unified diff | Download patch
OLDNEW
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
OLDNEW
« 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