1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

Feature: Nicer display of <metadata>

This adds a little bit nicer display of <metadata> to the stats.xsl
page and avoids broken display of <metadata> and <authentication>.
This commit is contained in:
Philipp Schafft 2014-12-25 12:45:46 +00:00
parent b638d3c939
commit 5f962c9bdf

View File

@ -100,11 +100,24 @@
<table class="yellowkeys"> <table class="yellowkeys">
<tbody> <tbody>
<xsl:for-each select="*"> <xsl:for-each select="*">
<tr> <xsl:if test="name() != 'metadata' and name() != 'authentication'">
<td><xsl:value-of select="name()" /></td> <tr>
<td><xsl:value-of select="." /></td> <td><xsl:value-of select="name()" /></td>
</tr> <td><xsl:value-of select="." /></td>
</tr>
</xsl:if>
</xsl:for-each> </xsl:for-each>
<xsl:if test="metadata">
<tr>
<th colspan="2">Extra metadata</th>
</tr>
<xsl:for-each select="metadata/*">
<tr>
<td><xsl:value-of select="name()" /></td>
<td><xsl:value-of select="." /></td>
</tr>
</xsl:for-each>
</xsl:if>
</tbody> </tbody>
</table> </table>
<xsl:if test="authentication"> <xsl:if test="authentication">