Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(ui): fix svg display in legacy monitoring pages (#11659)
Browse files Browse the repository at this point in the history
Refs: MON-14869
  • Loading branch information
kduret committed Sep 5, 2022
1 parent 3a14208 commit 57dec79
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 10 deletions.
5 changes: 4 additions & 1 deletion www/include/monitoring/status/Services/xsl/serviceGrid.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="s_listing_uri"/></xsl:attribute>
<xsl:attribute name="isreact">true</xsl:attribute>
<xsl:value-of select="viewIcon" disable-output-escaping="yes"/>
<xsl:element name="span">
<xsl:attribute name="class">svgs</xsl:attribute>
<xsl:value-of select="viewIcon" disable-output-escaping="yes"/>
</xsl:element>
</xsl:element>
<xsl:element name="a">
<xsl:attribute name="href">main.php?p=204&amp;mode=0&amp;svc_id=<xsl:value-of select="hnl"/></xsl:attribute>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="s_listing_uri"/></xsl:attribute>
<xsl:attribute name="isreact">true</xsl:attribute>
<xsl:value-of select="viewIcon" disable-output-escaping="yes"/>
<xsl:element name="span">
<xsl:attribute name="class">svgs</xsl:attribute>
<xsl:value-of select="viewIcon" disable-output-escaping="yes"/>
</xsl:element>
</xsl:element>
<xsl:element name="a">
<xsl:attribute name="href">main.php?p=204&amp;mode=0&amp;svc_id=<xsl:value-of select="hnl"/></xsl:attribute>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,17 @@
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="s_listing_uri"/></xsl:attribute>
<xsl:attribute name="isreact">true</xsl:attribute>
<xsl:value-of select="viewIcon" disable-output-escaping="yes"/>
<xsl:element name="span">
<xsl:attribute name="class">svgs</xsl:attribute>
<xsl:value-of select="viewIcon" disable-output-escaping="yes"/>
</xsl:element>
</xsl:element>
<xsl:element name="a">
<xsl:attribute name="href">main.php?p=204&amp;mode=0&amp;svc_id=<xsl:value-of select="hnl"/></xsl:attribute>
<xsl:value-of select="chartIcon" disable-output-escaping="yes"/>
<xsl:element name="span">
<xsl:attribute name="class">svgs</xsl:attribute>
<xsl:value-of select="chartIcon" disable-output-escaping="yes"/>
</xsl:element>
</xsl:element>
</td>
<xsl:if test="//i/s = 1">
Expand Down Expand Up @@ -122,5 +128,8 @@
</xsl:for-each>
</table>
<div id="div_popup" class="popup_volante"><div class="container-load"></div><div id="popup-container-display"></div></div>
<script type="text/javascript">
$(displaySvgOnXSL());
</script>
</xsl:template>
</xsl:stylesheet>
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,17 @@
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="s_listing_uri"/></xsl:attribute>
<xsl:attribute name="isreact">true</xsl:attribute>
<xsl:value-of select="viewIcon" disable-output-escaping="yes"/>
<xsl:element name="span">
<xsl:attribute name="class">svgs</xsl:attribute>
<xsl:value-of select="viewIcon" disable-output-escaping="yes"/>
</xsl:element>
</xsl:element>
<xsl:element name="a">
<xsl:attribute name="href">main.php?p=204&amp;mode=0&amp;svc_id=<xsl:value-of select="hnl"/></xsl:attribute>
<xsl:value-of select="chartIcon" disable-output-escaping="yes"/>
<xsl:element name="span">
<xsl:attribute name="class">svgs</xsl:attribute>
<xsl:value-of select="chartIcon" disable-output-escaping="yes"/>
</xsl:element>
</xsl:element>
</td>
<xsl:if test="//i/s = 1">
Expand Down Expand Up @@ -173,5 +179,8 @@
<div class="container-load"></div>
<div id="popup-container-display"></div>
</div>
<script type="text/javascript">
$(displaySvgOnXSL());
</script>
</xsl:template>
</xsl:stylesheet>
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,17 @@
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="s_listing_uri"/></xsl:attribute>
<xsl:attribute name="isreact">true</xsl:attribute>
<xsl:value-of select="viewIcon" disable-output-escaping="yes"/>
<xsl:element name="span">
<xsl:attribute name="class">svgs</xsl:attribute>
<xsl:value-of select="viewIcon" disable-output-escaping="yes"/>
</xsl:element>
</xsl:element>
<xsl:element name="a">
<xsl:attribute name="href">main.php?p=20401&amp;mode=0&amp;svc_id=<xsl:value-of select="hnl"/></xsl:attribute>
<xsl:value-of select="chartIcon" disable-output-escaping="yes"/>
<xsl:element name="span">
<xsl:attribute name="class">svgs</xsl:attribute>
<xsl:value-of select="chartIcon" disable-output-escaping="yes"/>
</xsl:element>
</xsl:element>
</td>
<xsl:if test="//i/s = 1">
Expand Down Expand Up @@ -90,5 +96,8 @@
<div class="container-load"></div>
<div id="popup-container-display"></div>
</div>
<script type="text/javascript">
$(displaySvgOnXSL());
</script>
</xsl:template>
</xsl:stylesheet>
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,17 @@
<td class="ListColLeft" style="white-space:nowrap;width:37px;">
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="s_listing_uri"/></xsl:attribute>
<xsl:value-of select="viewIcon" disable-output-escaping="yes"/>
<xsl:element name="span">
<xsl:attribute name="class">svgs</xsl:attribute>
<xsl:value-of select="viewIcon" disable-output-escaping="yes"/>
</xsl:element>
</xsl:element>
<xsl:element name="a">
<xsl:attribute name="href">main.php?p=20401&amp;mode=0&amp;svc_id=<xsl:value-of select="hnl"/></xsl:attribute>
<xsl:value-of select="chartIcon" disable-output-escaping="yes"/>
<xsl:element name="span">
<xsl:attribute name="class">svgs</xsl:attribute>
<xsl:value-of select="chartIcon" disable-output-escaping="yes"/>
</xsl:element>
</xsl:element>
</td>
<xsl:if test="//i/s = 1">
Expand Down Expand Up @@ -119,5 +125,8 @@
</xsl:for-each>
</table>
<div id="div_popup" class="popup_volante"><div class="container-load"></div><div id="popup-container-display"></div></div>
<script type="text/javascript">
$(displaySvgOnXSL());
</script>
</xsl:template>
</xsl:stylesheet>

0 comments on commit 57dec79

Please sign in to comment.