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