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

Side by Side Diff: appengine/sheriff_o_matic/ui/ct-alert-card-buttons.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 2015 The Chromium Authors. All rights reserved. 2 Copyright 2015 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="../model/ct-builder-list.html">
6
7 <link rel="import" href="../model/ct-builder-list.html">
8 <link rel="import" href="ct-button.html"> 6 <link rel="import" href="ct-button.html">
9 7
10 <polymer-element name="ct-alert-card-buttons" attributes="bug alert tree" noscri pt> 8 <dom-module id="ct-alert-card-buttons">
11 <template> 9 <style>
12 <style>
13 :host { 10 :host {
14 display: flex; 11 display: flex;
15 } 12 }
16 :host > * { 13 :host > * {
17 margin-right: 5px; 14 margin-right: 5px;
18 } 15 }
19 ct-button { 16 ct-button {
20 white-space: nowrap; 17 white-space: nowrap;
21 } 18 }
22 19
23 #bugReminder { 20 #bugReminder {
24 font-size: large; 21 font-size: large;
25 color: red; 22 color: red;
26 } 23 }
27 24
28 #examineLink { 25 #examineLink {
29 padding: 6px 22px; 26 padding: 6px 22px;
30 } 27 }
31 </style> 28 </style>
32 <a id="examineLink" href="/{{ tree }}/failures/{{ alert.key }}">Examine</a> 29 <template>
33 <ct-button id="snooze" on-tap="{{ snooze }}" label="Snooze"></ct-button> 30 <a id="examineLink" href$="{{computeHref(alert, tree)}}">Examine</a>
34 <ct-button id="link-bug" on-tap="{{ linkBug }}" label="Link Bug"></ct-button > 31 <ct-button id="snooze" on-tap=" snooze " label="Snooze"></ct-button>
32 <ct-button id="link-bug" on-tap=" linkBug " label="Link Bug"></ct-button>
35 </template> 33 </template>
36 </polymer-element> 34 <script>
35 Polymer({
36 is: 'ct-alert-card-buttons',
37 properties: {
38 alert: { notify: true },
39 bug: { notify: true },
40 tree: { notify: true }
41 },
42 computeHref: function (alert, tree) {
43 return '/' + tree + '/failures/' + alert.key;
44 }
45 });
46 </script>
47 </dom-module>
OLDNEW
« no previous file with comments | « appengine/sheriff_o_matic/ui/ct-alert-card.html ('k') | appengine/sheriff_o_matic/ui/ct-alert-extension.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698