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

Side by Side 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 unified diff | Download patch
OLDNEW
1 {{define "title"}}{{.Build.Summary.Label}}{{end}} 1 {{define "title"}}{{.Build.Summary.Label}}{{end}}
2 2
3 {{define "head"}}{{end}} 3 {{define "head"}}{{end}}
4 4
5 {{define "body"}} 5 {{define "body"}}
6 <div class="content"> 6 <div class="content">
7 <h1>{{.Build.Summary.Label}}</h1> 7 <h1>{{.Build.Summary.Label}}</h1>
8 8
9 <div class="column"> 9 <div class="column">
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 {{ end }} 51 {{ end }}
52 52
53 {{ if .Commit.ChangelistURL }} 53 {{ if .Commit.ChangelistURL }}
54 <tr><td class="left">Patch</td><td><a href="{{.Commit.ChangelistURL}}">Y ES</a></td></tr> 54 <tr><td class="left">Patch</td><td><a href="{{.Commit.ChangelistURL}}">Y ES</a></td></tr>
55 {{ end }} 55 {{ end }}
56 56
57 </table> 57 </table>
58 {{ end }} <!-- with --> 58 {{ end }} <!-- with -->
59 {{ end }} <!-- if --> 59 {{ end }} <!-- if -->
60 60
61 {{ if .Build.Summary.Bot }} 61 {{ if or .Build.Summary.Bot .Build.Summary.Source }}
62 <h2>Execution:</h2> 62 <h2>Execution:</h2>
63 <a href="{{ .Build.Summary.Bot.URL }}">{{ .Build.Summary.Bot.Label }}</a> 63 <ul>
64 {{ end }} 64 {{ if .Build.Summary.Source }}
65 <li>
66 Source:
67 <a href="{{ .Build.Summary.Source.URL }}">{{ .Build.Summary.Source.Lab el }}</a>
68 </li>
69 {{ end }}
70
71 {{ if .Build.Summary.Bot }}
72 <li>
73 Bot:
74 <a href="{{ .Build.Summary.Bot.URL }}">{{ .Build.Summary.Bot.Label }}< /a>
75 </li>
76 {{ end }}
77 </ul>
78 {{ end }} <!-- if -->
65 79
66 {{ if .Build.SourceStamp }} 80 {{ if .Build.SourceStamp }}
67 {{ if .Build.SourceStamp.Source }} 81 {{ if .Build.SourceStamp.Source }}
68 <h2>Reason:</h2> 82 <h2>Reason:</h2>
69 <p>{{ .Source }}</p> 83 <p>{{ .Source }}</p>
70 {{ end }} 84 {{ end }}
71 {{ end }} 85 {{ end }}
72 86
73 <h2>Steps and Logfiles:</h2> 87 <h2>Steps and Logfiles:</h2>
74 <ol> 88 <ol>
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 <script> 188 <script>
175 (function() { 189 (function() {
176 'use strict'; 190 'use strict';
177 var startedSpan = document.getElementById('started-time'); 191 var startedSpan = document.getElementById('started-time');
178 var finishedSpan = document.getElementById('finished-time'); 192 var finishedSpan = document.getElementById('finished-time');
179 startedSpan.textContent = milo.formatDate('{{ .Build.Summary.Started }}'); 193 startedSpan.textContent = milo.formatDate('{{ .Build.Summary.Started }}');
180 finishedSpan.textContent = milo.formatDate('{{ .Build.Summary.Finished }}'); 194 finishedSpan.textContent = milo.formatDate('{{ .Build.Summary.Finished }}');
181 })(); 195 })();
182 </script> 196 </script>
183 {{end}} 197 {{end}}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698