Skip to content

Commit

Permalink
Use status blocks with no status arg
Browse files Browse the repository at this point in the history
  • Loading branch information
mcartmel authored and scroix committed Apr 1, 2024
1 parent 18402cd commit 492dca1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions nodel-webui-js/src/templates.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,11 @@
<!-- status -->
<xsl:template match="status">
<div data-status="{@event}">
<xsl:if test="@event">
<xsl:attribute name="data-status">
<xsl:value-of select="@event"/>
</xsl:attribute>
</xsl:if>
<xsl:attribute name="class">
<xsl:text>panel panel-default statusgroup clearfix</xsl:text>
<xsl:if test="@showevent">
Expand All @@ -903,9 +908,14 @@
</xsl:attribute>
</xsl:if>
<div class="panel-body">
<xsl:apply-templates select="image"/><xsl:apply-templates select="link"/><xsl:apply-templates select="button|swich|partialswitch"/><xsl:apply-templates select="badge|partialbadge|signal"/><strong><xsl:value-of select="text()"/></strong><br/><span class="status">Unknown</span>
<xsl:apply-templates select="image"/><xsl:apply-templates select="link"/><xsl:apply-templates select="button|swich|partialswitch"/><xsl:apply-templates select="badge|partialbadge|signal"/><strong><xsl:value-of select="text()"/></strong>
<xsl:if test="@event">
<br/><span class="status">Unknown</span>
</xsl:if>
</div>
<xsl:apply-templates select="statussleep"/>
<xsl:if test="@event">
<xsl:apply-templates select="statussleep"/>
</xsl:if>
</div>
</xsl:template>
<!-- status -->
Expand Down

0 comments on commit 492dca1

Please sign in to comment.