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