Francois Gouget : testbot/web: Unclutter the Activity page's Time column.

Alexandre Julliard julliard at winehq.org
Fri Dec 22 08:49:36 CST 2017


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

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Fri Dec 22 01:42:08 2017 +0100

testbot/web: Unclutter the Activity page's Time column.

Most of the time the date change is quite obvious so now the date is
now only shown if hovering over the time. This avoids much line wrapping
and makes the column more readable.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 testbot/web/Activity.pl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/testbot/web/Activity.pl b/testbot/web/Activity.pl
index 677272f..ca5b94c 100644
--- a/testbot/web/Activity.pl
+++ b/testbot/web/Activity.pl
@@ -52,7 +52,7 @@ sub _GetHtmlTime($)
 {
   my ($Timestamp) = @_;
   return "<noscript><div>",
-      strftime("%d %H:%M:%S", localtime($Timestamp)), "</div></noscript>\n" .
+      strftime("<a class='title' title='%d'>%H:%M:%S</a>", localtime($Timestamp)), "</div></noscript>\n" .
       "<script type='text/javascript'><!--\n" .
       "ShowDateTime($Timestamp);\n" .
       "//--></script>";
@@ -100,8 +100,8 @@ function Pad2(n)
 function ShowDateTime(Sec1970)
 {
   var Dt = new Date(Sec1970 * 1000);
-  document.write(Pad2(Dt.getDate()) + ' ' + Pad2(Dt.getHours()) + ':' +
-                 Pad2(Dt.getMinutes()) + ':' + Pad2(Dt.getSeconds()));
+  document.write('<a class="title" title="' + Pad2(Dt.getDate()) + '">' + Pad2(Dt.getHours()) + ':' +
+                 Pad2(Dt.getMinutes()) + ':' + Pad2(Dt.getSeconds()) + "</a>");
 }
 //--></script>
 EOF




More information about the wine-cvs mailing list