]> xenbits.xensource.com Git - people/aperard/osstest.git/commitdiff
html output: ms-flights-summary: Generate link to flight logs directory
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 22 Feb 2017 11:48:52 +0000 (11:48 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 22 Feb 2017 11:48:52 +0000 (11:48 +0000)
Make the flight number be a link to the unpublished flight logs.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
ms-flights-summary

index 78f8675262e9e0930dd39d72ae7edbc409a0ba31..10ad6e50468cc1bd4ea8861767555839ccd6be5a 100755 (executable)
@@ -435,6 +435,7 @@ printf("<table border='0' cellspacing='0' rules=all>\n");
 my $first = 1;
 foreach my $f (sort keys %flights) {
     my $fi = $flights{$f};
+    my $furl = "$c{ReportHtmlUnpubBaseUrl}/$f/";
 
     $alt = 0;
 
@@ -442,7 +443,8 @@ foreach my $f (sort keys %flights) {
     print ("    <tr><td>&nbsp;</td></tr>\n") if !$first;
     $first = 0;
     print("<a name=\"$f\"></a>\n");
-    flight_hdr("Flight: $f [$fi->{Branch} $fi->{Intended}]");
+    flight_hdr_raw("Flight: <a href=\"".encode_entities($furl)."\">$f</a>".
+                  encode_entities(" [$fi->{Branch} $fi->{Intended}]"));
     flight_hdr("Common info (active jobs only): $fi->{Info}") if $fi->{Info};
     flight_hdr("Started: ".fmttime($fi->{Started}));
     flight_hdr("Current phase ($fi->{UnqueuedJobs}/$fi->{NrJobs} jobs)".