2014-12-29 10:32:52 -05:00
|
|
|
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0">
|
|
|
|
<xsl:output method="html" doctype-system="about:legacy-compat" encoding="UTF-8" />
|
|
|
|
<!-- Import include files -->
|
2018-05-05 02:40:25 -04:00
|
|
|
<xsl:include href="includes/page.xsl"/>
|
2014-12-29 10:32:52 -05:00
|
|
|
<xsl:include href="includes/mountnav.xsl"/>
|
2020-10-01 10:00:46 -04:00
|
|
|
<xsl:include href="includes/player.xsl"/>
|
2014-03-02 08:35:09 -05:00
|
|
|
|
2020-10-01 09:31:26 -04:00
|
|
|
<xsl:variable name="title">Server status</xsl:variable>
|
2018-05-05 02:40:25 -04:00
|
|
|
|
2014-12-29 10:32:52 -05:00
|
|
|
<!-- Auth template -->
|
|
|
|
<xsl:template name="authlist">
|
|
|
|
<ul>
|
|
|
|
<xsl:for-each select="authentication/role">
|
|
|
|
<li>Role
|
|
|
|
<xsl:if test="@name">
|
|
|
|
<xsl:value-of select="@name" />
|
|
|
|
</xsl:if>
|
|
|
|
of type <xsl:value-of select="@type" />
|
|
|
|
<xsl:if test="@management-url">
|
2014-03-02 08:35:09 -05:00
|
|
|
<xsl:choose>
|
2014-12-29 10:32:52 -05:00
|
|
|
<xsl:when test="@can-adduser='true' or @can-deleteuser='true'">
|
|
|
|
(<a href="{@management-url}">Manage</a>)
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:when test="@can-listuser='true'">
|
|
|
|
(<a href="{@management-url}">List</a>)
|
2014-03-02 08:35:09 -05:00
|
|
|
</xsl:when>
|
|
|
|
</xsl:choose>
|
2014-05-05 01:16:44 -04:00
|
|
|
</xsl:if>
|
2014-12-29 10:32:52 -05:00
|
|
|
</li>
|
|
|
|
</xsl:for-each>
|
|
|
|
</ul>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
2018-05-05 02:40:25 -04:00
|
|
|
<xsl:template name="content">
|
2020-10-01 09:31:26 -04:00
|
|
|
<h2>Server status</h2>
|
2014-12-29 10:32:52 -05:00
|
|
|
|
|
|
|
<!-- Global stats table -->
|
2020-10-01 09:48:34 -04:00
|
|
|
<section class="box">
|
|
|
|
<h3 class="box_title">Global server stats</h3>
|
2015-01-11 11:10:35 -05:00
|
|
|
<!-- Global subnav -->
|
2020-10-01 10:33:40 -04:00
|
|
|
<div class="stats">
|
|
|
|
<ul class="boxnav">
|
2015-01-11 11:10:35 -05:00
|
|
|
<li><a href="reloadconfig.xsl">Reload Configuration</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2020-10-01 10:33:40 -04:00
|
|
|
|
|
|
|
<h4>Statistics</h4>
|
|
|
|
|
2014-12-29 10:32:52 -05:00
|
|
|
<table class="table-block">
|
|
|
|
<thead>
|
2014-03-02 08:35:09 -05:00
|
|
|
<tr>
|
2014-12-29 10:32:52 -05:00
|
|
|
<th>Key</th>
|
|
|
|
<th>Value</th>
|
2014-03-02 08:35:09 -05:00
|
|
|
</tr>
|
2014-12-29 10:32:52 -05:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<xsl:for-each select="/icestats/*[not(self::source) and not(self::authentication)]">
|
2014-12-25 07:45:46 -05:00
|
|
|
<tr>
|
|
|
|
<td><xsl:value-of select="name()" /></td>
|
2014-12-29 10:32:52 -05:00
|
|
|
<td><xsl:value-of select="text()" /></td>
|
2014-12-25 07:45:46 -05:00
|
|
|
</tr>
|
|
|
|
</xsl:for-each>
|
2014-12-29 10:32:52 -05:00
|
|
|
</tbody>
|
2014-12-26 16:57:50 -05:00
|
|
|
</table>
|
2014-12-29 10:32:52 -05:00
|
|
|
|
|
|
|
<!-- Global Auth -->
|
|
|
|
<xsl:if test="authentication">
|
|
|
|
<h4>Authentication</h4>
|
|
|
|
<xsl:call-template name="authlist" />
|
|
|
|
</xsl:if>
|
2020-10-01 09:48:34 -04:00
|
|
|
</section>
|
2014-12-29 10:32:52 -05:00
|
|
|
|
|
|
|
<!-- Mount stats -->
|
|
|
|
<xsl:for-each select="source">
|
2020-10-01 09:48:34 -04:00
|
|
|
<section class="box">
|
|
|
|
<h3 class="box_title">Mountpoint <code><xsl:value-of select="@mount" /></code></h3>
|
2014-12-29 10:32:52 -05:00
|
|
|
<!-- Mount nav -->
|
|
|
|
<xsl:call-template name="mountnav" />
|
2020-10-01 10:00:46 -04:00
|
|
|
<xsl:call-template name="player" />
|
2014-12-29 10:32:52 -05:00
|
|
|
<h4>Further information</h4>
|
|
|
|
<table class="table-block">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Key</th>
|
|
|
|
<th>Value</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2015-02-09 09:25:45 -05:00
|
|
|
<xsl:for-each select="*[not(self::metadata) and not(self::authentication) and not(self::authenticator) and not(self::listener)]">
|
2014-12-29 10:32:52 -05:00
|
|
|
<tr>
|
|
|
|
<td><xsl:value-of select="name()" /></td>
|
|
|
|
<td><xsl:value-of select="text()" /></td>
|
|
|
|
</tr>
|
|
|
|
</xsl:for-each>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<!-- Extra metadata -->
|
|
|
|
<xsl:if test="metadata/*">
|
|
|
|
<h4>Extra Metadata</h4>
|
|
|
|
<table class="table-block">
|
|
|
|
<tbody>
|
|
|
|
<xsl:for-each select="metadata/*">
|
|
|
|
<tr>
|
|
|
|
<td><xsl:value-of select="name()" /></td>
|
|
|
|
<td><xsl:value-of select="text()" /></td>
|
|
|
|
</tr>
|
|
|
|
</xsl:for-each>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</xsl:if>
|
|
|
|
|
2015-05-02 03:29:58 -04:00
|
|
|
<!-- Extra playlist -->
|
|
|
|
<xsl:if test="playlist/*">
|
|
|
|
<h4>Playlist</h4>
|
|
|
|
<table class="table-block">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<th>Album</th>
|
|
|
|
<th>Track</th>
|
|
|
|
<th>Creator</th>
|
|
|
|
<th>Title</th>
|
|
|
|
</tr>
|
|
|
|
<xsl:for-each select="playlist/trackList/track">
|
|
|
|
<tr>
|
|
|
|
<td><xsl:value-of select="album" /></td>
|
|
|
|
<td><xsl:value-of select="trackNum" /></td>
|
|
|
|
<td><xsl:value-of select="creator" /></td>
|
|
|
|
<td><xsl:value-of select="title" /></td>
|
|
|
|
</tr>
|
|
|
|
</xsl:for-each>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</xsl:if>
|
|
|
|
|
2014-12-29 10:32:52 -05:00
|
|
|
<!-- Mount Authentication -->
|
|
|
|
<xsl:if test="authentication">
|
|
|
|
<h4>Mount Authentication</h4>
|
|
|
|
<xsl:call-template name="authlist" />
|
|
|
|
</xsl:if>
|
|
|
|
|
2020-10-01 09:48:34 -04:00
|
|
|
</section>
|
2014-12-29 10:32:52 -05:00
|
|
|
</xsl:for-each>
|
|
|
|
</xsl:template>
|
2014-12-31 05:19:27 -05:00
|
|
|
</xsl:stylesheet>
|