Make the flight number be a link to the unpublished flight logs.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
my $first = 1;
foreach my $f (sort keys %flights) {
my $fi = $flights{$f};
+ my $furl = "$c{ReportHtmlUnpubBaseUrl}/$f/";
$alt = 0;
print (" <tr><td> </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)".