diff mbox

[OSSTEST,4/4] html output: ms-flights-summary: Generate link to job logs directory

Message ID 1487764715-9499-4-git-send-email-ian.jackson@eu.citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ian Jackson Feb. 22, 2017, 11:58 a.m. UTC
Make each job name in the detailed tables be a link to the
(unpublished) logs for that job.

Requested-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
 ms-flights-summary | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/ms-flights-summary b/ms-flights-summary
index 10ad6e5..0e5cd4d 100755
--- a/ms-flights-summary
+++ b/ms-flights-summary
@@ -315,7 +315,12 @@  sub do_one_job($$$$) {
 
     $tag = "b" if $info->{Anon} && currently_running($info);
 
-    cell(encode_entities($job), undef, undef, $tag);
+    my $jobcell = encode_entities($job);
+    if ($fl) {
+	my $jurl = "$c{ReportHtmlUnpubBaseUrl}/$fl/$job/";
+	$jobcell = "<a href=\"".encode_entities($jurl)."\">".$jobcell."</a>";
+    }
+    cell($jobcell, undef, undef, $tag);
 
     # Anonymous/rogue jobs may not have a flight or status
     if ($fl && $status) {