Display log url when a job completes

When the job has a result we need to swap to showing the report_url and
not the url.

Change-Id: Iae9edf906c5dcb692550ea887286bc8a49490d9b
This commit is contained in:
Monty Taylor 2017-07-21 09:48:41 +09:00
parent 402f2ed2f2
commit e78211da17
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 9 additions and 1 deletions

View File

@ -96,7 +96,15 @@
job: function(job) {
var $job_line = $('<span />');
if (job.url !== null) {
if (job.result !== null) {
$job_line.append(
$('<a />')
.addClass('zuul-job-name')
.attr('href', job.report_url)
.text(job.name)
);
}
else if (job.url !== null) {
$job_line.append(
$('<a />')
.addClass('zuul-job-name')