[tools 4/5] testbot/web: Show the job submission date as a tooltip on the main page.
Francois Gouget
fgouget at codeweavers.com
Mon Apr 25 13:50:41 CDT 2022
Only the jobs of the past few days are shown so the date is not very
useful. Delegating it to a tooltip avoids much line-wrapping in the
Submitted column, allowing more lines to fit on-screen.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
testbot/web/index.pl | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/testbot/web/index.pl b/testbot/web/index.pl
index 331ee85ea..4048cacd3 100644
--- a/testbot/web/index.pl
+++ b/testbot/web/index.pl
@@ -46,7 +46,8 @@ sub DisplayProperty($$)
return !1;
}
- return $self->SUPER::DisplayProperty($PropertyDescriptor);
+ return $PropertyName eq "Submitted" ? ("ro", "timetipdate") :
+ $self->SUPER::DisplayProperty($PropertyDescriptor);
}
sub GenerateHeaderView($$$)
@@ -58,6 +59,10 @@ sub GenerateHeaderView($$$)
{
print "<a class='title' title='Higher values indicate a lower priority'>Nice</a>";
}
+ elsif ($PropertyName eq "Submitted")
+ {
+ print "<a class='title' title='Date'>Submitted</a>";
+ }
elsif ($PropertyName eq "Ended")
{
print "<a class='title' title='Ended'>Time</a>";
--
2.30.2
More information about the wine-devel
mailing list