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

Unified Diff: appengine/swarming/elements/res/imp/common/common-behavior.html

Issue 2391583002: Several small changes to new UI pages (Closed) Base URL: git@github.com:luci/luci-py@uptime
Patch Set: rebase Created 4 years, 2 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/common/common-behavior.html
diff --git a/appengine/swarming/elements/res/imp/common/common-behavior.html b/appengine/swarming/elements/res/imp/common/common-behavior.html
index 9a10e463055692d20807bcd234b6ac79fc441195..1a7e506fb4b8e57566214d62f985af438e13d6e1 100644
--- a/appengine/swarming/elements/res/imp/common/common-behavior.html
+++ b/appengine/swarming/elements/res/imp/common/common-behavior.html
@@ -46,6 +46,13 @@
return "/newui/botlist?" + sk.query.fromParamSet(obj);
},
+ // Create a link to a bot in Google Cloud Console. Cloud console will try
+ // to find the bot in the last project the user was logged in as, which
+ // is the best we can do atm.
+ _cloudConsoleLink: function(zone, bot_id) {
+ return `http://console.cloud.google.com/compute/instancesDetail/zones/${zone}/instances/${bot_id}`
+ },
+
// _getJsonAsync makes an XHR to a url, parses the response as JSON
// and sticks the resulting object into the property with the name given
// by "bindTo". If busy is defined, the property with that name will be

Powered by Google App Engine
This is Rietveld 408576698