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