From 2edd3ff43b7ab342b7de58a66bcd996d5dfc57d9 Mon Sep 17 00:00:00 2001
From: "James E. Blair" <jeblair@redhat.com>
Date: Thu, 16 Jun 2016 15:57:43 -0700
Subject: [PATCH] Re-enable in-progress job url links

Change-Id: I7abd659886d5952d31a0875f2d36cd22f48fb3fc
---
 modules/openstack_project/templates/zuul/status.js.erb | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/modules/openstack_project/templates/zuul/status.js.erb b/modules/openstack_project/templates/zuul/status.js.erb
index 280624a166..ccbfacdc0c 100644
--- a/modules/openstack_project/templates/zuul/status.js.erb
+++ b/modules/openstack_project/templates/zuul/status.js.erb
@@ -334,10 +334,14 @@ function format_change(change, change_queue) {
         html += '<span class="jobwrapper"><span class="job">';
         if (job['result'] !== null && job['report_url'] !== null) {
             html += '<a href="'+job['report_url']+'">';
-        }
-        html += job['name'];
-        if (job['result'] !== null && job['report_url'] !== null) {
+            html += job['name'];
             html += '</a>';
+        } else if (job['url'] !== null) {
+            html += '<a href="'+job['url']+'">';
+            html += job['name'];
+            html += '</a>';
+        } else {
+            html += job['name'];
         }
         html += ': ';
         if (job['result'] === null && job['url'] !== null) {