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

Unified Diff: appengine/swarming/ui/res/imp/botlist/bot-list.html

Issue 2558633009: Make old version bots show up yellow on botlist (Closed)
Patch Set: Created 4 years 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/ui/res/imp/botlist/bot-list.html
diff --git a/appengine/swarming/ui/res/imp/botlist/bot-list.html b/appengine/swarming/ui/res/imp/botlist/bot-list.html
index 2d3c7226a81c653fc2980579a167a7a97fba44bf..3553286c73f0abafb2721cf86d3d4705d95ac8d2 100644
--- a/appengine/swarming/ui/res/imp/botlist/bot-list.html
+++ b/appengine/swarming/ui/res/imp/botlist/bot-list.html
@@ -58,6 +58,9 @@
/* Leave space for sort-toggle*/
padding-right: 30px;
}
+ .old_version {
+ background-color: #ffffdd;
+ }
</style>
<url-param name="s"
@@ -183,7 +186,7 @@
as="bot"
initial-count=50>
- <tr class$="[[_botClass(bot)]]">
+ <tr class$="[[_botClass(bot,_server_details.bot_version)]]">
<td>
<a
class="center"
@@ -602,13 +605,16 @@
return swarming.alias.android(this._deviceType(device));
},
- _botClass: function(bot) {
+ _botClass: function(bot, serverVersion) {
if (bot.is_dead) {
return "dead";
}
if (bot.quarantined) {
return "quarantined";
}
+ if (bot.version !== serverVersion) {
M-A Ruel 2016/12/09 20:57:13 I'd prefer these to be additive.
kjlubick 2016/12/12 13:26:11 Done.
+ return "old_version";
+ }
return "";
},

Powered by Google App Engine
This is Rietveld 408576698