[PATCH 2/2] testbot/web: Unclutter the Activity page's Time column.

Francois Gouget fgouget at codeweavers.com
Thu Dec 21 18:42:08 CST 2017


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>
---
 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 677272f4..ca5b94c1 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
-- 
2.15.1



More information about the wine-devel mailing list