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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: appengine/sheriff_o_matic/ui/ct-alert-card-buttons.html
diff --git a/appengine/sheriff_o_matic/ui/ct-alert-card-buttons.html b/appengine/sheriff_o_matic/ui/ct-alert-card-buttons.html
index 5cace696f1f64785dc8b1fa8fb2d43bb89403744..3451e0ee20cc407b1090f7c8ea3c7d067bda4c59 100644
--- a/appengine/sheriff_o_matic/ui/ct-alert-card-buttons.html
+++ b/appengine/sheriff_o_matic/ui/ct-alert-card-buttons.html
@@ -2,14 +2,11 @@
Copyright 2015 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.
--->
-
-<link rel="import" href="../model/ct-builder-list.html">
+--><html><head><link rel="import" href="../model/ct-builder-list.html">
<link rel="import" href="ct-button.html">
-<polymer-element name="ct-alert-card-buttons" attributes="bug alert tree" noscript>
- <template>
- <style>
+<dom-module id="ct-alert-card-buttons">
+ <style>
:host {
display: flex;
}
@@ -29,8 +26,22 @@ found in the LICENSE file.
padding: 6px 22px;
}
</style>
- <a id="examineLink" href="/{{ tree }}/failures/{{ alert.key }}">Examine</a>
- <ct-button id="snooze" on-tap="{{ snooze }}" label="Snooze"></ct-button>
- <ct-button id="link-bug" on-tap="{{ linkBug }}" label="Link Bug"></ct-button>
+ <template>
+ <a id="examineLink" href$="{{computeHref(alert, tree)}}">Examine</a>
+ <ct-button id="snooze" on-tap=" snooze " label="Snooze"></ct-button>
+ <ct-button id="link-bug" on-tap=" linkBug " label="Link Bug"></ct-button>
</template>
-</polymer-element>
+ <script>
+ Polymer({
+ is: 'ct-alert-card-buttons',
+ properties: {
+ alert: { notify: true },
+ bug: { notify: true },
+ tree: { notify: true }
+ },
+ computeHref: function (alert, tree) {
+ return '/' + tree + '/failures/' + alert.key;
+ }
+ });
+ </script>
+</dom-module>
« 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