[Libreoffice-commits] help.git: help3xsl/help.html help3xsl/online_transform.xsl

Olivier Hallot olivier.hallot at libreoffice.org
Sat Aug 12 22:01:11 UTC 2017


 help3xsl/help.html            |    2 +-
 help3xsl/online_transform.xsl |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 5f88c56e4312f3527f2f953e5ed2dc4ea5438701
Author: Olivier Hallot <olivier.hallot at libreoffice.org>
Date:   Sat Aug 12 18:48:47 2017 -0300

    tdf#97745 Enable page debug for 6.0
    
    Fix url detection in help.html
    Connect xhp file displayed to opengrok
    Hide momentarily debug control
    
    Change-Id: Icab467ee797d3ec94082a7b3b722bfd2485b5b2e
    Reviewed-on: https://gerrit.libreoffice.org/41100
    Reviewed-by: Olivier Hallot <olivier.hallot at edx.srv.br>
    Tested-by: Olivier Hallot <olivier.hallot at edx.srv.br>

diff --git a/help3xsl/help.html b/help3xsl/help.html
index bd2100a7e..6b44ca320 100644
--- a/help3xsl/help.html
+++ b/help3xsl/help.html
@@ -13,7 +13,7 @@
 <body>
 <script type="text/javascript">
     var url = window.location.href;
-    var n = url.indexOf('LOHelp.html?');
+    var n = url.indexOf('help.html?');
     if (n != -1){
     // the URL came from LibreOffice help (F1)
     var version = getParameterByName("Version",url);
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl
index a267bdd14..016521e03 100644
--- a/help3xsl/online_transform.xsl
+++ b/help3xsl/online_transform.xsl
@@ -280,7 +280,7 @@
         <p><a href="http://www.libreoffice.org/imprint" target="_blank">Impressum (Legal Info)</a> | <a href="http://www.libreoffice.org/privacy" target="_blank">Privacy Policy</a> | <a href="http://www.documentfoundation.org/statutes.pdf" target="_blank">Statutes (non-binding English translation)</a> - <a href="http://www.documentfoundation.org/satzung.pdf" target="_blank">Satzung (binding German version)</a> | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the <a href="http://creativecommons.org/licenses/by-sa/3.0/" target="_blank">Creative Commons Attribution-Share Alike 3.0 License</a>. This does not include the source code of LibreOffice, which is licensed under the <a href="http://www.libreoffice.org/download/license/" target="_blank">Mozilla Public License v2.0</a>. “LibreOffice” and “The Document Foundation” are registered trademarks of their corresponding registered owners or are in actual use as trademarks 
 in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our <a href="http://wiki.documentfoundation.org/TradeMark_Policy" target="_blank">trademark policy</a>. LibreOffice was based on OpenOffice.org.</p>
         <div id="DEBUG" class="debug">
             <h3 class="bug">Help content debug info:</h3>
-            <p>This page is: <xsl:value-of select="$filename"/></p>
+            <p>This page is: <a href="https://opengrok.libreoffice.org/xref/help/source{$filename}" target="_blank"><xsl:value-of select="$filename"/></a></p>
             <p>Title is: <xsl:value-of select="$title"/></p>
             <p id="bm_module"></p>
             <p id="bm_system"></p>
@@ -298,7 +298,8 @@
                 setSystem(system);
                 fixURL(module,system);
                 var dbg = getParameterByName("Debug");
-                if (dbg == null){dbg=0}
+                //if (dbg == null){dbg=1}
+                dbg=1
                 document.getElementById("DEBUG").style.display = (dbg == 0) ? "none":"block";
                 document.getElementById("bm_module").innerHTML ="Module is: "+module;
                 document.getElementById("bm_system").innerHTML ="System is: "+system;


More information about the Libreoffice-commits mailing list