Module: tools Branch: master Commit: 8229ab69bd59a30083b03f89ef3c0b58f20b6233 URL: https://source.winehq.org/git/tools.git/?a=commit;h=8229ab69bd59a30083b03f89...
Author: Francois Gouget fgouget@codeweavers.com Date: Mon Dec 10 16:48:12 2018 +0100
testbot/web: Fix showing the local job / task completion time.
The ShowDateTime() JavaScript call must be on its own line otherwise it's ignored.
Signed-off-by: Francois Gouget fgouget@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
testbot/web/JobDetails.pl | 5 +++-- testbot/web/index.pl | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/testbot/web/JobDetails.pl b/testbot/web/JobDetails.pl index 92f9d19..84b9e37 100644 --- a/testbot/web/JobDetails.pl +++ b/testbot/web/JobDetails.pl @@ -598,8 +598,9 @@ sub GenerateDataCell($$$$$) print "<td><a id='$TagId' class='title' title='", strftime("%Y/%m/%d %H:%M:%S", localtime($StepTask->Ended)), "'>", DurationToString($Duration), "</a>\n"; - print "<script type='text/javascript'><!-- ShowDateTime(", - $StepTask->Ended, ",'$TagId'); --></script>\n"; + print "<script type='text/javascript'><!--\n"; + print " ShowDateTime(", $StepTask->Ended, ",'$TagId');\n"; + print "--></script>\n"; print "</td>\n"; } else diff --git a/testbot/web/index.pl b/testbot/web/index.pl index e06f515..b20c7bf 100644 --- a/testbot/web/index.pl +++ b/testbot/web/index.pl @@ -161,8 +161,9 @@ sub GenerateDataCell($$$$) print "<td><a id='$TagId' class='title' title='", strftime("%Y/%m/%d %H:%M:%S", localtime($Item->Ended)), "'>", DurationToString($Duration), "</a>\n"; - print "<script type='text/javascript'><!-- ShowDateTime(", - $Item->Ended, ",'$TagId'); --></script>\n"; + print "<script type='text/javascript'><!--\n"; + print " ShowDateTime(", $Item->Ended, ",'$TagId');\n"; + print "--></script>\n"; print "</td>\n"; } else