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

Unified Diff: appengine/sheriff_o_matic/ui/ct-detailed-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
Index: appengine/sheriff_o_matic/ui/ct-detailed-commit.html
diff --git a/appengine/sheriff_o_matic/ui/ct-detailed-commit.html b/appengine/sheriff_o_matic/ui/ct-detailed-commit.html
index 2fd861330f97905d149b76735f34dcb19eb5574f..c99fc237dc4547c81ca2d51421c2bb3e075cfd60 100644
--- a/appengine/sheriff_o_matic/ui/ct-detailed-commit.html
+++ b/appengine/sheriff_o_matic/ui/ct-detailed-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-button.html">
-<link rel="import" href="ct-button.html">
-
-<polymer-element name="ct-detailed-commit" attributes="data suspected" noscript>
- <template>
- <style>
+<dom-module id="ct-detailed-commit">
+ <style>
.header {
text-align: center;
font-size: 20px;
@@ -18,13 +15,14 @@ found in the LICENSE file.
font-weight: bold;
}
</style>
+ <template>
<div class="header">
- <template if="{{ suspected }}">
- <span class="suspected-commit">*</span><a href="{{ data.url }}" class="suspected-commit">{{ data.repository }}:{{ data.revision }}</a>
+ <template is="dom-if" if="{{ suspected }}">
+ <span class="suspected-commit">*</span><a class="suspected-commit" href$="{{ data.url }}"><span>{{ data.repository }}</span>:<span>{{ data.revision }}</span></a>
</template>
- <template if="{{ !suspected }}">
- <a href="{{ data.url }}">{{ data.repository }}:{{ data.revision }}</a>
+ <template is="dom-if" if="{{ !suspected }}">
+ <a href$="{{ data.url }}"><span>{{ data.repository }}</span>:<span>{{ data.revision }}</span></a>
</template>
</div>
@@ -33,6 +31,15 @@ found in the LICENSE file.
<!-- TODO(sergiyb): Add modified files linked to their diffs from
https://src.chromium.org/viewvc/blink/path/to/file?pathrev=123456. -->
<!-- <iframe src="{{ data.url }}"></iframe> -->
- <hr/>
+ <hr>
</template>
-</polymer-element>
+ <script>
+ Polymer({
+ is: 'ct-detailed-commit',
+ properties: {
+ data: { notify: true },
+ suspected: { notify: true }
+ }
+ });
+ </script>
+</dom-module>
« no previous file with comments | « appengine/sheriff_o_matic/ui/ct-commit-list.html ('k') | appengine/sheriff_o_matic/ui/ct-embedded-flakiness-dashboard.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698