| Index: appengine/swarming/ui/res/imp/botpage/bot-page.html
|
| diff --git a/appengine/swarming/ui/res/imp/botpage/bot-page.html b/appengine/swarming/ui/res/imp/botpage/bot-page.html
|
| index 1017860ac01ffb3528a2e0a73f718fd6895f7f55..ca214dc531ddf1f2e096af0a765cfda4acb69eea 100644
|
| --- a/appengine/swarming/ui/res/imp/botpage/bot-page.html
|
| +++ b/appengine/swarming/ui/res/imp/botpage/bot-page.html
|
| @@ -195,7 +195,9 @@
|
| </td>
|
| </tr>
|
| <tr>
|
| - <td rowspan$="[[_numRows(_bot.dimensions)]]">Dimensions</td>
|
| + <td rowspan$="[[_numRows(_bot.dimensions)]]">
|
| + <a href$="[[_siblingBotsLink(_bot.dimensions)]]" title="The list of bots that also matches these dimensions (except id)."> Dimensions</a>
|
| + </td>
|
| </tr>
|
| <template
|
| is="dom-repeat"
|
| @@ -591,6 +593,25 @@
|
| "Shutting down "+this.bot_id, this._auth_headers);
|
| },
|
|
|
| + _siblingBotsLink(dimensions) {
|
| + var cols = ["id", "os", "task", "status"];
|
| + if (!dimensions) {
|
| + return this._botListLink([], cols);
|
| + }
|
| +
|
| + dimensions = dimensions.filter(function(f){
|
| + return f.key !== "id";
|
| + });
|
| +
|
| + dimensions.forEach(function(f) {
|
| + if (cols.indexOf(f.key) === -1) {
|
| + cols.push(f.key);
|
| + }
|
| + }.bind(this));
|
| +
|
| + return this._botListLink(dimensions, cols);
|
| + },
|
| +
|
| _task: function(bot) {
|
| return (bot && bot.task_id) || "idle";
|
| },
|
|
|