| Index: appengine/sheriff_o_matic/ui/ct-alerts.html
|
| diff --git a/appengine/sheriff_o_matic/ui/ct-alerts.html b/appengine/sheriff_o_matic/ui/ct-alerts.html
|
| index 7626ced09b959f6447a769fb1b4a526cea3aaabc..d0d2fad570826587a370055422a57a7959516393 100644
|
| --- a/appengine/sheriff_o_matic/ui/ct-alerts.html
|
| +++ b/appengine/sheriff_o_matic/ui/ct-alerts.html
|
| @@ -2,21 +2,31 @@
|
| 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.
|
| --->
|
| +--><html><head><link rel="import" href="ct-alert-card.html">
|
|
|
| -<link rel="import" href="ct-alert-card.html">
|
| -
|
| -<polymer-element name="ct-alerts" attributes="alerts tree" noscript>
|
| - <template>
|
| - <style>
|
| +<dom-module id="ct-alerts">
|
| + <style>
|
| .main {
|
| margin: 1em;
|
| }
|
| </style>
|
| - <div class='main' style=''>
|
| - <template repeat="{{ alert in alerts[tree].alerts }}">
|
| + <template>
|
| + <div class="main" style="">
|
| + <template is="dom-repeat" items="{{computeItems(alerts, tree)}}" as="alert">
|
| <ct-alert-card alert="{{ alert }}" tree="{{ tree }}"></ct-alert-card>
|
| </template>
|
| </div>
|
| </template>
|
| -</polymer-element>
|
| + <script>
|
| + Polymer({
|
| + is: 'ct-alerts',
|
| + properties: {
|
| + alerts: { notify: true },
|
| + tree: { notify: true }
|
| + },
|
| + computeItems: function (alerts, tree) {
|
| + return alerts[tree].alerts;
|
| + }
|
| + });
|
| + </script>
|
| +</dom-module>
|
|
|