Skip to content

Commit

Permalink
UBO-328 Allow to provide dropdown dividers in user menu via navigatio…
Browse files Browse the repository at this point in the history
…n.xml (#385)
  • Loading branch information
Possommi committed May 14, 2024
1 parent f8b9558 commit a778df5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ubo-common/src/main/resources/xsl/html-layout-backend.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,15 @@
</xsl:variable>

<xsl:if test="$allowed = 'true'">
<xsl:if test="@display-divider = 'top'">
<div class="dropdown-divider"/>
</xsl:if>
<a href="{$WebApplicationBaseURL}{@ref}" class="dropdown-item">
<xsl:call-template name="output.label.for.lang" />
</a>
<xsl:if test="@display-divider = 'bottom'">
<div class="dropdown-divider"/>
</xsl:if>
</xsl:if>
</xsl:for-each>
</xsl:template>
Expand Down

0 comments on commit a778df5

Please sign in to comment.