From e78211da174b94ab3b81c43ce929d8c02950a7f5 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Fri, 21 Jul 2017 09:48:41 +0900 Subject: [PATCH] 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 --- etc/status/public_html/jquery.zuul.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/etc/status/public_html/jquery.zuul.js b/etc/status/public_html/jquery.zuul.js index aec7a46557..1937cd5977 100644 --- a/etc/status/public_html/jquery.zuul.js +++ b/etc/status/public_html/jquery.zuul.js @@ -96,7 +96,15 @@ job: function(job) { var $job_line = $(''); - if (job.url !== null) { + if (job.result !== null) { + $job_line.append( + $('') + .addClass('zuul-job-name') + .attr('href', job.report_url) + .text(job.name) + ); + } + else if (job.url !== null) { $job_line.append( $('') .addClass('zuul-job-name')