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

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

Issue 2093503002: milo: source and bot links (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: change link text Created 4 years, 6 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/cmd/milo/frontend/templates/buildbot/pages/build.html
diff --git a/appengine/cmd/milo/frontend/templates/buildbot/pages/build.html b/appengine/cmd/milo/frontend/templates/buildbot/pages/build.html
index 2491385f4f50e4a33aef92ff141f5d856227743b..b1e7dc6549cc9958fb4cc75c759ed3a5788ec203 100644
--- a/appengine/cmd/milo/frontend/templates/buildbot/pages/build.html
+++ b/appengine/cmd/milo/frontend/templates/buildbot/pages/build.html
@@ -58,10 +58,24 @@
{{ end }} <!-- with -->
{{ end }} <!-- if -->
- {{ if .Build.Summary.Bot }}
+ {{ if or .Build.Summary.Bot .Build.Summary.Source }}
<h2>Execution:</h2>
- <a href="{{ .Build.Summary.Bot.URL }}">{{ .Build.Summary.Bot.Label }}</a>
- {{ end }}
+ <ul>
+ {{ if .Build.Summary.Source }}
+ <li>
+ Source:
+ <a href="{{ .Build.Summary.Source.URL }}">{{ .Build.Summary.Source.Label }}</a>
+ </li>
+ {{ end }}
+
+ {{ if .Build.Summary.Bot }}
+ <li>
+ Bot:
+ <a href="{{ .Build.Summary.Bot.URL }}">{{ .Build.Summary.Bot.Label }}</a>
+ </li>
+ {{ end }}
+ </ul>
+ {{ end }} <!-- if -->
{{ if .Build.SourceStamp }}
{{ if .Build.SourceStamp.Source }}

Powered by Google App Engine
This is Rietveld 408576698