Francois Gouget : testbot/web: Show the job submission date as a tooltip on the main page.

Alexandre Julliard julliard at winehq.org
Mon Apr 25 16:23:48 CDT 2022


Module: tools
Branch: master
Commit: f919e7d33b48f261840fc1a637cb084970700a26
URL:    https://source.winehq.org/git/tools.git/?a=commit;h=f919e7d33b48f261840fc1a637cb084970700a26

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Mon Apr 25 20:50:41 2022 +0200

testbot/web: Show the job submission date as a tooltip on the main page.

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>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 331ee85..4048cac 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>";




More information about the wine-cvs mailing list