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

Unified Diff: Tools/GardeningServer/ui/ct-tree-status.html

Issue 398653005: Add a details link to ct-tree-status. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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-tree-status.html
diff --git a/Tools/GardeningServer/ui/ct-tree-status.html b/Tools/GardeningServer/ui/ct-tree-status.html
index 0293c090bfce7ad7758bcdc7ab5e7624d1de773f..59b8bbd1f5ac9ff59565159cb41754fd96d3bc28 100644
--- a/Tools/GardeningServer/ui/ct-tree-status.html
+++ b/Tools/GardeningServer/ui/ct-tree-status.html
@@ -9,7 +9,7 @@ found in the LICENSE file.
<template if="{{ message }}">
<style>
:host {
- display: block;
+ display: flex;
whitespace: nowrap;
overflow: hidden;
text-overflow: ellispis;
@@ -19,12 +19,14 @@ found in the LICENSE file.
background-color: khaki;
}
- :host([status=closed]) {
+ :host([status=closed]),
+ :host([status=closed]) a {
color: white;
background-color: tomato;
}
</style>
- {{ project }}: {{ message }}
+ <div style="flex: 1">{{ project }}: {{ message }}</div>
+ <div style="padding: 0 5px;">[ <a href="{{ project | _url }}">details</a> ]</div>
</template>
</template>
<script>
@@ -38,8 +40,12 @@ found in the LICENSE file.
},
},
+ _url: function(project) {
+ return treestatus.urlByName(this.project);
+ },
+
update: function() {
- var url = treestatus.urlByName(this.project);
+ var url = this._url(this.project) + 'current?format=json';
return net.json(url).then(function(response) {
this.updateStatus(response);
}.bind(this));
« no previous file with comments | « Tools/GardeningServer/scripts/treestatus_unittests.js ('k') | Tools/GardeningServer/ui/ct-tree-status-tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698