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

Unified Diff: appengine/swarming/elements/res/imp/tasklist/task-list.html

Issue 2359243004: Minor improvements of task list (Closed) Base URL: git@github.com:luci/luci-py@task-list
Patch Set: fix-merge Created 4 years, 3 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: appengine/swarming/elements/res/imp/tasklist/task-list.html
diff --git a/appengine/swarming/elements/res/imp/tasklist/task-list.html b/appengine/swarming/elements/res/imp/tasklist/task-list.html
index de23258d5ec06d66722eb82d2a783d80ef57f714..4585a7e79de204ee415cae3ba29fbbd774f567a6 100644
--- a/appengine/swarming/elements/res/imp/tasklist/task-list.html
+++ b/appengine/swarming/elements/res/imp/tasklist/task-list.html
@@ -120,6 +120,14 @@
</sort-toggle>
</th>
+ <th hidden$="[[_hide('bot', _columns.*)]]">
+ <span>Bot Assigned</span>
+ <sort-toggle
+ name="bot"
+ current="[[_sort]]">
+ </sort-toggle>
+ </th>
+
<th hidden$="[[_hide('deduped_from', _columns.*)]]">
<span>Deduped from</span>
<sort-toggle
@@ -168,6 +176,14 @@
Cancel
</paper-button>
</td>
+ <td hidden$="[[_hide('bot', _columns.*)]]">
+ <a
+ class="center"
+ href$="[[_botLink(task.bot_id)]]"
+ target="_blank">
+ [[_column('bot',task)]]
+ </a>
+ </td>
<td hidden$="[[_hide('deduped_from', _columns.*)]]">
<a
class="center"
@@ -208,7 +224,7 @@
</template>
<script>
(function(){
- var specialColumns = ["deduped_from", "name", "state"];
+ var specialColumns = ["deduped_from", "name", "state", "bot"];
// Given a time attribute like "abandoned_ts", humanTime returns a function
// that returns the human-friendly version of that attribute. The human
@@ -220,6 +236,9 @@
}
var columnMap = {
abandoned_ts: humanTime("abandoned_ts"),
+ bot: function(task) {
+ return this._attribute(task, "bot_id")[0];
+ },
completed_ts: humanTime("completed_ts"),
costs_usd: function(task) {
return this._attribute(task, "costs_usd", 0)[0];

Powered by Google App Engine
This is Rietveld 408576698