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

Unified Diff: appengine/sheriff_o_matic/ui/ct-alerts.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
« no previous file with comments | « appengine/sheriff_o_matic/ui/ct-alert-extension.html ('k') | appengine/sheriff_o_matic/ui/ct-banner.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « appengine/sheriff_o_matic/ui/ct-alert-extension.html ('k') | appengine/sheriff_o_matic/ui/ct-banner.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698