2020-10-09 05:36:03 -04:00
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
2020-10-09 06:26:18 -04:00
|
|
|
<!-- Import include files -->
|
|
|
|
<xsl:include href="includes/page.xsl"/>
|
|
|
|
<xsl:include href="includes/mountnav.xsl"/>
|
|
|
|
<xsl:include href="includes/player.xsl"/>
|
|
|
|
<xsl:include href="includes/playlist.xsl"/>
|
2022-03-06 13:09:42 -05:00
|
|
|
<xsl:include href="includes/authlist.xsl"/>
|
2014-03-02 08:35:09 -05:00
|
|
|
|
2020-10-09 06:26:18 -04:00
|
|
|
<xsl:param name="param-showall" />
|
|
|
|
<xsl:param name="param-has-mount" />
|
|
|
|
<xsl:variable name="title">Server status</xsl:variable>
|
2018-05-05 02:40:25 -04:00
|
|
|
|
2020-10-09 06:26:18 -04:00
|
|
|
<xsl:template name="content">
|
|
|
|
<h2>Server status</h2>
|
2014-12-29 10:32:52 -05:00
|
|
|
|
2020-10-09 06:26:18 -04:00
|
|
|
<!-- Global stats table -->
|
|
|
|
<section class="box">
|
|
|
|
<h3 class="box_title">Global server stats</h3>
|
|
|
|
<!-- Global subnav -->
|
|
|
|
<div class="stats">
|
|
|
|
<ul class="boxnav">
|
2020-10-15 11:23:52 -04:00
|
|
|
<li><a href="/admin/reloadconfig.xsl?omode=normal">Reload Configuration</a></li>
|
2020-10-10 08:15:10 -04:00
|
|
|
<li><a href="/admin/stats.xsl?showall=true">Show all mounts</a></li>
|
2020-10-09 06:26:18 -04:00
|
|
|
</ul>
|
|
|
|
</div>
|
2020-10-01 10:33:40 -04:00
|
|
|
|
2020-10-09 06:26:18 -04:00
|
|
|
<h4>Statistics</h4>
|
2020-10-01 10:33:40 -04:00
|
|
|
|
2020-10-09 06:26:18 -04:00
|
|
|
<table class="table-block">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Key</th>
|
|
|
|
<th>Value</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<xsl:for-each select="/icestats/*[not(self::source) and not(self::authentication) and not(self::modules)]">
|
|
|
|
<tr>
|
|
|
|
<td><xsl:value-of select="name()" /></td>
|
|
|
|
<td><xsl:value-of select="text()" /></td>
|
|
|
|
</tr>
|
|
|
|
</xsl:for-each>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2014-12-29 10:32:52 -05:00
|
|
|
|
2020-10-09 06:26:18 -04:00
|
|
|
<!-- Global Auth -->
|
|
|
|
<xsl:if test="authentication">
|
|
|
|
<h4>Authentication</h4>
|
|
|
|
<xsl:call-template name="authlist" />
|
|
|
|
</xsl:if>
|
|
|
|
</section>
|
2014-12-29 10:32:52 -05:00
|
|
|
|
2020-10-09 06:26:18 -04:00
|
|
|
<!-- Mount stats -->
|
|
|
|
<xsl:if test="$param-showall or $param-has-mount">
|
|
|
|
<xsl:for-each select="source">
|
|
|
|
<section class="box" id="mount-{position()}">
|
|
|
|
<h3 class="box_title">Mountpoint <code><xsl:value-of select="@mount" /></code></h3>
|
|
|
|
<!-- Mount nav -->
|
|
|
|
<xsl:call-template name="mountnav" />
|
|
|
|
<xsl:call-template name="player" />
|
|
|
|
<h4>Further information</h4>
|
|
|
|
<table class="table-block">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Key</th>
|
|
|
|
<th>Value</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<xsl:for-each select="*[not(self::metadata) and not(self::authentication) and not(self::authenticator) and not(self::listener)]">
|
|
|
|
<tr>
|
|
|
|
<td><xsl:value-of select="name()" /></td>
|
|
|
|
<td><xsl:value-of select="text()" /></td>
|
|
|
|
</tr>
|
|
|
|
</xsl:for-each>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2014-12-29 10:32:52 -05:00
|
|
|
|
2020-10-09 06:26:18 -04:00
|
|
|
<!-- 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>
|
2014-12-29 10:32:52 -05:00
|
|
|
|
2020-10-09 06:26:18 -04:00
|
|
|
<!-- Extra playlist -->
|
|
|
|
<xsl:call-template name="playlist" />
|
2015-05-02 03:29:58 -04:00
|
|
|
|
2020-10-09 06:26:18 -04:00
|
|
|
<!-- Mount Authentication -->
|
|
|
|
<xsl:if test="authentication/*">
|
|
|
|
<h4>Mount Authentication</h4>
|
|
|
|
<xsl:call-template name="authlist" />
|
|
|
|
</xsl:if>
|
2014-12-29 10:32:52 -05:00
|
|
|
|
2020-10-09 06:26:18 -04:00
|
|
|
</section>
|
|
|
|
</xsl:for-each>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:template>
|
2014-12-31 05:19:27 -05:00
|
|
|
</xsl:stylesheet>
|