[PATCH] testbot/web: Use GetTaskURL() to link to the task pages.
Francois Gouget
fgouget at codeweavers.com
Wed Sep 25 01:52:13 CDT 2019
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
testbot/web/Activity.pl | 4 ++--
testbot/web/Stats.pl | 3 +--
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/testbot/web/Activity.pl b/testbot/web/Activity.pl
index bf7d6b9be..fe056aa48 100644
--- a/testbot/web/Activity.pl
+++ b/testbot/web/Activity.pl
@@ -231,9 +231,9 @@ EOF
$Label .= "/64" if ($Bitness);
}
}
- my $Key = $VMStatus->{job}->Id ."#k". ($VMStatus->{step}->No * 100 + $VMStatus->{task}->No);
+ my $URL = GetTaskURL($VMStatus->{job}->Id, $VMStatus->{step}->No, $VMStatus->{task}->No);
my $Title = $self->escapeHTML($VMStatus->{job}->Remarks);
- $Label = "<a href='/JobDetails.pl?Key=$Key' title='$Title'>$Label</a>";
+ $Label = "<a href='$URL' title='$Title'>$Label</a>";
}
elsif ($VMStatus->{status} eq "dirty")
{
diff --git a/testbot/web/Stats.pl b/testbot/web/Stats.pl
index 70e812dbe..91106bbc8 100644
--- a/testbot/web/Stats.pl
+++ b/testbot/web/Stats.pl
@@ -131,8 +131,7 @@ sub _GetStatHtml($$;$$)
my ($JobId, $StepNo, $TaskNo) = ObjectModel::Collection::SplitKey(undef, $SrcObj->GetFullKey());
if (defined $TaskNo)
{
- my $Key = "$JobId#k". ($StepNo * 100 + $TaskNo);
- return "<a href='/JobDetails.pl?Key=$Key'>$Value</a>";
+ return "<a href='". GetTaskURL($JobId, $StepNo, $TaskNo) ."'>$Value</a>";
}
return "<a href='/index.pl#job$JobId'>$Value</a>";
}
--
2.20.1
More information about the wine-devel
mailing list