diff options
author | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2018-11-20 20:44:57 +0200 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2018-11-20 23:08:35 +0100 |
commit | 10c207f682a65bb3ff434689822024e828308341 (patch) | |
tree | 43c06abed876ad627d5bceaf4dc7392e2b3d5c06 /help3xsl/online_transform.xsl | |
parent | 8aef24ea353e04d75360d0b94ccbca6c6c8e9635 (diff) |
tdf#119415 Add placeholder text for index filter
Change-Id: If7a0a863eb6b8bb95a5b6236f4f3d490739810a1
Reviewed-on: https://gerrit.libreoffice.org/63672
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
(cherry picked from commit 126ef50e9756e79bf5b500edeaa9275260a1b7d3)
Reviewed-on: https://gerrit.libreoffice.org/63682
Diffstat (limited to 'help3xsl/online_transform.xsl')
-rw-r--r-- | help3xsl/online_transform.xsl | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index ee6a5fbf27..95892bdd4c 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -108,6 +108,8 @@ <xsl:variable name="tmp_doc_ui" select="document($tmp_href_ui)"/> <xsl:variable name ="ui_contents"><xsl:apply-templates select="$tmp_doc_ui//variable[@id='contents']"/></xsl:variable> <xsl:variable name ="ui_index"><xsl:apply-templates select="$tmp_doc_ui//variable[@id='index']"/></xsl:variable> +<xsl:variable name ="ui_pholderall"><xsl:apply-templates select="$tmp_doc_ui//variable[@id='pholderall']"/></xsl:variable> +<xsl:variable name ="ui_pholderchosen"><xsl:apply-templates select="$tmp_doc_ui//variable[@id='pholderchosen']"/></xsl:variable> <xsl:variable name ="ui_module"><xsl:apply-templates select="$tmp_doc_ui//variable[@id='module']"/></xsl:variable> <xsl:variable name ="ui_language"><xsl:apply-templates select="$tmp_doc_ui//variable[@id='language']"/></xsl:variable> <xsl:variable name ="ui_donate"><xsl:apply-templates select="$tmp_doc_ui//variable[@id='donate']"/></xsl:variable> @@ -195,7 +197,17 @@ <div id="Index"> <div class="index-label"><xsl:value-of select="$ui_index"/>  🔎︎ </div> <div id="Bookmarks"> - <input id="search-bar" type="text" class="search" /> + <xsl:variable name="pholder"> + <xsl:choose> + <xsl:when test="not(contains($htmlpage, '/text/shared/explorer/database/')) and contains($htmlpage, '/text/shared/')"> + <xsl:value-of select="$ui_pholderall"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$ui_pholderchosen"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <input id="search-bar" type="text" class="search" placeholder="{$pholder}"/> <nav class="index"></nav> </div> </div> |