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

Unified Diff: milo/appengine/frontend/templates/buildbot/pages/build.html

Issue 2250263005: Milo: Prefetch logs that are failures (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: URL fix Created 4 years, 4 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: milo/appengine/frontend/templates/buildbot/pages/build.html
diff --git a/milo/appengine/frontend/templates/buildbot/pages/build.html b/milo/appengine/frontend/templates/buildbot/pages/build.html
index 7b9db7b362db56262579cd3a3b683f665b93a9d1..169c4ffd1d1f1044513bdbf5e8e0bbe966532d0e 100644
--- a/milo/appengine/frontend/templates/buildbot/pages/build.html
+++ b/milo/appengine/frontend/templates/buildbot/pages/build.html
@@ -135,6 +135,10 @@
{{ if .MainLink }}
<li>{{.MainLink | linkify}}</li>
{{ end }}
+ {{- if eq .Verbosity.String "Interesting" -}}
+ <link rel="prerender" href="{{.MainLink.URL}}">
+ <link rel="prefetch" href="{{.MainLink.URL}}">
+ {{- end }}
{{ range .SubLink }}
<li>{{. | linkify}}</li>
{{ end }}

Powered by Google App Engine
This is Rietveld 408576698