| 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>
|
|
|