Francois Gouget : testbot/web: Add a border around the link to hide the current log.

Alexandre Julliard julliard at winehq.org
Tue Jul 10 12:39:42 CDT 2018


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

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Tue Jul 10 10:35:31 2018 +0200

testbot/web: Add a border around the link to hide the current log.

This helps make it clearer which log is being shown.

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

---

 testbot/web/JobDetails.pl   | 8 ++++++--
 testbot/web/WineTestBot.css | 6 ++++++
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/testbot/web/JobDetails.pl b/testbot/web/JobDetails.pl
index e7e53d2..532d76d 100644
--- a/testbot/web/JobDetails.pl
+++ b/testbot/web/JobDetails.pl
@@ -338,8 +338,12 @@ sub GenerateMoreInfoLink($$$;$)
   }
   $Url .= "#k" . uri_escape($LinkKey);
 
-  print "<div class='TaskMoreInfoLink'><a href='",
-        $self->CGI->escapeHTML($Url), "'>$Action $Label</a></div>\n";
+  my $Html = "<a href='". $self->CGI->escapeHTML($Url) ."'>$Action $Label</a>";
+  if ($Action eq "Hide")
+  {
+    $Html = "<span class='TaskMoreInfoSelected'>$Html</span>";
+  }
+  print "<div class='TaskMoreInfoLink'>$Html</div>\n";
 }
 
 sub GenerateBody($)
diff --git a/testbot/web/WineTestBot.css b/testbot/web/WineTestBot.css
index 593c38f..0055ec0 100644
--- a/testbot/web/WineTestBot.css
+++ b/testbot/web/WineTestBot.css
@@ -310,6 +310,12 @@ h2
   margin-right: 2em;
 }
 
+.TaskMoreInfoSelected
+{
+    border: 1px solid #a50d0d;
+    padding: 2px;
+}
+
 .LogDllName
 {
   font-weight: bold;




More information about the wine-cvs mailing list