[PATCH] testbot/web: Add ids so one can link to a given job on the Home page.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] testbot/web: Add ids so one can link to a given job on the Home page.

Francois Gouget
Signed-off-by: Francois Gouget <[hidden email]>
---
 testbot/web/index.pl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testbot/web/index.pl b/testbot/web/index.pl
index 3f3a91e6..b0c2d450 100644
--- a/testbot/web/index.pl
+++ b/testbot/web/index.pl
@@ -87,7 +87,8 @@ sub GenerateDataCell($$$$)
   my $PropertyName = $PropertyDescriptor->GetName();
   if ($PropertyName eq "Status")
   {
-    print "<td><a href='/JobDetails.pl?Key=", uri_escape($Item->GetKey()), "'>";
+    my $EscapedKey = uri_escape($Item->GetKey());
+    print "<td id='job$EscapedKey'><a href='/JobDetails.pl?Key=$EscapedKey'>";
 
     my %HTMLChunks = ("queued" => "<span class='queued'>queued</span>",
                       "running" => "<span class='running'>running</span>",
--
2.15.0