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

Unified Diff: Tools/GardeningServer/ui/ct-commit.html

Issue 349783003: Polymer-based Garden-O-Matic should have a basic results panel (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address Michael's comments Created 6 years, 6 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: Tools/GardeningServer/ui/ct-commit.html
diff --git a/Tools/GardeningServer/ui/ct-commit.html b/Tools/GardeningServer/ui/ct-commit.html
index 61d00be86d4e424d95128084f822f23c28f32011..893e9dc69c6babed7ec475a309a86584373b6f6e 100644
--- a/Tools/GardeningServer/ui/ct-commit.html
+++ b/Tools/GardeningServer/ui/ct-commit.html
@@ -4,13 +4,41 @@ Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
-<polymer-element name="ct-commit" attributes="data" noscript>
+<polymer-element name="ct-commit" attributes="data">
<template>
<style>
:host {
display: block;
}
+ a {
+ padding: 5px 10px 5px 10px;
+ margin-right: 5px;
+ border-radius: 4px;
+ display: inline-block;
+ }
+ :host(:hover) a {
+ background-color: #555;
+ color: white;
+ }
+ :host(:hover) a::after {
+ content: '';
+ width: 0;
+ height: 0;
+ margin-top: 5px;
+ position: absolute;
+ margin-left: 10px;
+ border-top: 5px solid white;
+ border-left: 5px solid #555;
+ border-bottom: 5px solid white;
+ }
</style>
- {{data.revision}}: {{data.summary}} <em>{{data.author}} ({{data.reviewer}})</em>
+ <a href="{{data.revision|changesetURL}}">{{data.revision}}</a> {{data.summary}} <em>{{data.author}}</em>
</template>
+ <script>
+ Polymer({
+ changesetURL: function(revision) {
+ return trac.changesetURL(revision);
+ },
+ });
+ </script>
</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698