]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
html output: ms-flights-summary: Generate link to job logs directory
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 22 Feb 2017 11:49:22 +0000 (11:49 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 22 Feb 2017 11:49:22 +0000 (11:49 +0000)
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

index 10ad6e50468cc1bd4ea8861767555839ccd6be5a..0e5cd4d7632c685474cd36e583692fddb01b382b 100755 (executable)
@@ -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) {