This is an automated email from the ASF dual-hosted git repository.
solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git
The following commit(s) were added to refs/heads/master by this push:
new bfddc77 [OPENMEETINGS-2558] key type is icon
bfddc77 is described below
commit bfddc77e007b1550df9d1de213b3ed599a4166a1
Author: Maxim Solodovnik <[email protected]>
AuthorDate: Thu Jan 21 12:20:58 2021 +0700
[OPENMEETINGS-2558] key type is icon
---
.../src/site/stylesheets/configs.xsl | 21 ++++++++++++++++-----
1 file changed, 16 insertions(+), 5 deletions(-)
diff --git a/openmeetings-server/src/site/stylesheets/configs.xsl
b/openmeetings-server/src/site/stylesheets/configs.xsl
index 10dfb3b..1105f86 100644
--- a/openmeetings-server/src/site/stylesheets/configs.xsl
+++ b/openmeetings-server/src/site/stylesheets/configs.xsl
@@ -44,9 +44,8 @@
<div class="row font-weight-bold mb-3">
<div class="col-1 p-2"> # </div>
<div class="col-3 text-break p-2"> key
</div>
- <div class="col-1 p-2"> type </div>
<div class="col-3 text-break p-2">
default </div>
- <div class="col-3 text-break p-2">
meaning </div>
+ <div class="col-4 text-break p-2">
meaning </div>
<div class="col-1 p-2"> version </div>
</div>
<xsl:apply-templates/>
@@ -59,10 +58,22 @@
<xsl:template match="config">
<div class="row mb-3">
<div class="col-1 p-2"><xsl:value-of
select="position() div 2"/></div>
- <div class="col-3 text-break
p-2"><xsl:value-of select="key"/></div>
- <div class="col-1 p-2"><xsl:value-of
select="type"/></div>
+ <div class="col-3 text-break p-2">
+ <xsl:choose>
+ <xsl:when
test="type='BOOL'">
+ <div
class="pr-2 fas fa-toggle-on text-success fa-2x" title="Boolean"></div>
+ </xsl:when>
+ <xsl:when
test="type='NUMBER'">
+ <div
class="pr-2 fas fa-2x" title="Number">#</div>
+ </xsl:when>
+ <xsl:otherwise>
+ <div
class="pr-2 fas fa-font fa-2x" title="String"></div>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:value-of select="key"/>
+ </div>
<div class="col-3 text-break
font-italic font-weight-bold p-2"><xsl:value-of select="value"/></div>
- <div class="col-3 text-break
p-2"><xsl:value-of select="comment"/></div>
+ <div class="col-4 text-break
p-2"><xsl:value-of select="comment"/></div>
<div class="col-1 p-2"><xsl:value-of
select="fromVersion"/></div>
</div>
</xsl:template>