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

Unified Diff: appengine/sheriff_o_matic/ui/ct-commit.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-chart.html ('k') | appengine/sheriff_o_matic/ui/ct-commit-list.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-commit.html
diff --git a/appengine/sheriff_o_matic/ui/ct-commit.html b/appengine/sheriff_o_matic/ui/ct-commit.html
index d0af5865c452d0a95902d3d10fb36b3b607231f6..5388f6bdb84621c4d6571aab1db8d532899b03f8 100644
--- a/appengine/sheriff_o_matic/ui/ct-commit.html
+++ b/appengine/sheriff_o_matic/ui/ct-commit.html
@@ -2,13 +2,10 @@
Copyright 2014 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-user-prefs.html">
-<link rel="import" href="ct-user-prefs.html">
-
-<polymer-element name="ct-commit" attributes="data suspected" noscript>
- <template>
- <style>
+<dom-module id="ct-commit">
+ <style>
:host {
display: flex;
align-items: flex-start;
@@ -38,13 +35,23 @@ found in the LICENSE file.
color: red;
}
</style>
+ <template>
<ct-user-prefs id="userPrefs"></ct-user-prefs>
- <template if="{{ suspected }}">
- <span class="suspected-commit">*</span><a class="suspected-commit" href="{{ data.url }}">{{ data.revision }}</a>
+ <template is="dom-if" if="{{ suspected }}">
+ <span class="suspected-commit">*</span><a class="suspected-commit" href$="{{ data.url }}">{{ data.revision }}</a>
</template>
- <template if="{{ !suspected }}">
- <a target="{{ $.userPrefs.values.linkTarget }}" href="{{ data.url }}">{{ data.revision }}</a>
+ <template is="dom-if" if="{{ !suspected }}">
+ <a target="{{ $.userPrefs.values.linkTarget }}" href$="{{ data.url }}">{{ data.revision }}</a>
</template>
<div>{{ data.summary }}<br><em>{{ data.author }}</em></div>
</template>
-</polymer-element>
+ <script>
+ Polymer({
+ is: 'ct-commit',
+ properties: {
+ data: { notify: true },
+ suspected: { notify: true }
+ }
+ });
+ </script>
+</dom-module>
« no previous file with comments | « appengine/sheriff_o_matic/ui/ct-chart.html ('k') | appengine/sheriff_o_matic/ui/ct-commit-list.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698