Francois Gouget : testbot/web: Make it possible to link to the top and bottom of the page.

Alexandre Julliard julliard at winehq.org
Thu Aug 30 13:54:09 CDT 2018


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

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Thu Aug 30 02:01:14 2018 +0200

testbot/web: Make it possible to link to the top and bottom of the page.

The PageTitle anchor identifies the page's title while the PageEnd one
points to the bottom of the page.

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

---

 testbot/lib/ObjectModel/CGI/CollectionPage.pm | 2 +-
 testbot/lib/ObjectModel/CGI/FormPage.pm       | 2 +-
 testbot/lib/WineTestBot/CGI/PageBase.pm       | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/testbot/lib/ObjectModel/CGI/CollectionPage.pm b/testbot/lib/ObjectModel/CGI/CollectionPage.pm
index 6593afc..194379f 100644
--- a/testbot/lib/ObjectModel/CGI/CollectionPage.pm
+++ b/testbot/lib/ObjectModel/CGI/CollectionPage.pm
@@ -63,7 +63,7 @@ sub GenerateTitle($)
   my $Title = $self->GetTitle();
   if ($Title)
   {
-    print "<h1>", $self->escapeHTML($Title), "</h1>\n";
+    print "<h1 id='PageTitle'>", $self->escapeHTML($Title), "</h1>\n";
   }
 }
 
diff --git a/testbot/lib/ObjectModel/CGI/FormPage.pm b/testbot/lib/ObjectModel/CGI/FormPage.pm
index 3a41fe0..01f7894 100644
--- a/testbot/lib/ObjectModel/CGI/FormPage.pm
+++ b/testbot/lib/ObjectModel/CGI/FormPage.pm
@@ -86,7 +86,7 @@ sub GenerateTitle($)
   my $Title = $self->GetTitle();
   if ($Title)
   {
-    print "<h1>", $self->CGI->escapeHTML($Title), "</h1>\n";
+    print "<h1 id='PageTitle'>", $self->CGI->escapeHTML($Title), "</h1>\n";
   }
 }
 
diff --git a/testbot/lib/WineTestBot/CGI/PageBase.pm b/testbot/lib/WineTestBot/CGI/PageBase.pm
index e5b2f2d..0eac6b1 100644
--- a/testbot/lib/WineTestBot/CGI/PageBase.pm
+++ b/testbot/lib/WineTestBot/CGI/PageBase.pm
@@ -328,7 +328,7 @@ sub GenerateFooter($)
 
   print <<EOF;
     </div><!--ContentContainer-->
-    <b class="rbottom"><b class="r4"> </b><b class="r3"> </b><b class="r2"> </b><b class="r1"> </b></b>
+    <b id="PageEnd" class="rbottom"><b class="r4"> </b><b class="r3"> </b><b class="r2"> </b><b class="r1"> </b></b>
   </div>
 </div><!--main_content-->
 




More information about the wine-cvs mailing list