diff options
author | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2022-01-18 09:34:15 +0200 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2022-01-25 16:40:00 +0100 |
commit | 919def267b89cfe03f40218baa8c16cf65526448 (patch) | |
tree | d7be260ec34a9ca56256b395a1be7170effede93 /help3xsl | |
parent | e1da23a649197d960c8492373326e11286b3239e (diff) |
tdf#123318 tdf#129697 Don't hardcode product name in CSS and JS
Change-Id: I0ef315146fed188eb1cf33c416ff5f3e9899bbae
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/128524
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl')
-rw-r--r-- | help3xsl/default.css | 22 | ||||
-rw-r--r-- | help3xsl/help2.js | 2 | ||||
-rw-r--r-- | help3xsl/online_transform.xsl | 8 |
3 files changed, 16 insertions, 16 deletions
diff --git a/help3xsl/default.css b/help3xsl/default.css index 2f770c6114..a90644025f 100644 --- a/help3xsl/default.css +++ b/help3xsl/default.css @@ -468,63 +468,63 @@ aside input[type=checkbox]:checked ~ .contents-treeview { color: #148603; } #WRITER::before { - content: "WRITER"; + content: "Writer"; display: block; font-size: 22px; font-weight: bold; color: #0369a3; } #CALC::before { - content: "CALC"; + content: "Calc"; display: block; font-size: 22px; font-weight: bold; color: #43c330; } #IMPRESS::before { - content: "IMPRESS"; + content: "Impress"; display: block; font-size: 22px; font-weight: bold; color: #a33e03; } #DRAW::before { - content: "DRAW"; + content: "Draw"; display: block; font-size: 22px; font-weight: bold; color: #c99c00; } #BASE::before { - content: "BASE"; + content: "Base"; display: block; font-size: 22px; font-weight: bold; color: #8e03a3; } #MATH::before { - content: "MATH"; + content: "Math"; display: block; font-size: 22px; font-weight: bold; color: darkslategray; } #CHART::before { - content: "CHART"; + content: "Chart"; display: block; font-size: 22px; font-weight: bold; color: darkcyan; } #BASIC::before { - content: "BASIC"; + content: "Basic"; display: block; font-size: 22px; font-weight: bold; color: black; } #SHARED::before { - content: "LIBREOFFICE"; + content: "%PRODUCTNAME"; display: block; font-size: 22px; font-weight: bold; @@ -630,7 +630,7 @@ li.disabled a { display: none; } -.libreoffice-icon, +.office-icon, .calc-icon, .chart-icon, .writer-icon, @@ -644,7 +644,7 @@ li.disabled a { position: relative; margin-right: 5px; } -.libreoffice-icon { +.office-icon { background-image: url(media/navigation/libo-symbol-black.svg); } .calc-icon { diff --git a/help3xsl/help2.js b/help3xsl/help2.js index 3a45f7f601..a0cd884470 100644 --- a/help3xsl/help2.js +++ b/help3xsl/help2.js @@ -187,7 +187,7 @@ function setupModules(lang) { var modulesNav = document.getElementById('modules-nav'); if (!modulesNav.classList.contains('loaded')) { var html = - '<a href="' + lang + '/text/shared/05/new_help.html?DbPAR=SHARED"><div class="libreoffice-icon"></div>LibreOffice</a>' + + '<a href="' + lang + '/text/shared/05/new_help.html?DbPAR=SHARED"><div class="office-icon"></div>%PRODUCTNAME</a>' + '<a href="' + lang + '/text/swriter/main0000.html?DbPAR=WRITER"><div class="writer-icon"></div>Writer</a>' + '<a href="' + lang + '/text/scalc/main0000.html?DbPAR=CALC"><div class="calc-icon"></div>Calc</a>' + '<a href="' + lang + '/text/simpress/main0000.html?DbPAR=IMPRESS"><div class="impress-icon"></div>Impress</a>' + diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index 7ccb97b766..c9b9a80928 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -139,7 +139,7 @@ <xsl:if test="$online"> <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval' piwik.documentfoundation.org"/> </xsl:if> - <title><xsl:value-of select="$titleL10N"/></title> + <title><xsl:value-of disable-output-escaping="yes" select="$titleL10N"/></title> <link rel="shortcut icon" href="media/navigation/favicon.ico"/> <link type="text/css" href="normalize.css" rel="Stylesheet"/> <link type="text/css" href="default.css" rel="Stylesheet"/> @@ -164,7 +164,7 @@ <div></div> </a> <a class="logo" href="{$lang}/text/shared/05/new_help.html"> - <p><xsl:value-of select="$ui_logo"/></p> + <p><xsl:value-of disable-output-escaping="yes" select="$ui_logo"/></p> </a> <div class="dropdowns"> <div class="modules"> @@ -256,7 +256,7 @@ <div id="DEBUG" class="debug"> <h3 class="bug">Help content debug info:</h3> <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>Title is: <xsl:value-of disable-output-escaping="yes" select="$title"/></p> <p id="bm_module"></p> <p id="bm_system"></p> <p id="bm_HID"></p> @@ -915,7 +915,7 @@ </xsl:when> <xsl:otherwise> - <xsl:value-of select="$string"/> + <xsl:value-of disable-output-escaping="yes" select="$string"/> </xsl:otherwise> </xsl:choose> |