summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2017-07-21 09:48:41 +0900
committerMonty Taylor <mordred@inaugust.com>2017-07-21 09:49:09 +0900
commite78211da174b94ab3b81c43ce929d8c02950a7f5 (patch)
tree866beda076db59d4684eb141c3ae165daa3e136b /etc
parent402f2ed2f2c619523f69bc9a7ee4d0c7a73a307e (diff)
downloadzuul-e78211da174b94ab3b81c43ce929d8c02950a7f5.tar.gz
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
Diffstat (limited to 'etc')
-rw-r--r--etc/status/public_html/jquery.zuul.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/etc/status/public_html/jquery.zuul.js b/etc/status/public_html/jquery.zuul.js
index aec7a4655..1937cd597 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 = $('<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')