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"/>
|
|
|
|
|
2018-05-20 15:05:00 -04:00
|
|
|
<xsl:variable name="title">Active Mountpoints</xsl:variable>
|
2018-05-05 02:40:25 -04:00
|
|
|
|
2014-12-29 10:32:52 -05:00
|
|
|
<!-- Auth template -->
|
|
|
|
<xsl:template name="authlist">
|
2014-03-02 08:35:09 -05:00
|
|
|
<ul>
|
2014-12-29 10:32:52 -05:00
|
|
|
<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">
|
|
|
|
<xsl:choose>
|
|
|
|
<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>)
|
|
|
|
</xsl:when>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:if>
|
|
|
|
</li>
|
|
|
|
</xsl:for-each>
|
2014-03-02 08:35:09 -05:00
|
|
|
</ul>
|
2014-12-29 10:32:52 -05:00
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
2018-05-05 02:40:25 -04:00
|
|
|
<xsl:template name="content">
|
2014-12-29 10:32:52 -05:00
|
|
|
<div class="section">
|
2018-05-20 15:05:00 -04:00
|
|
|
<h2><xsl:value-of select="$title" /></h2>
|
2014-03-02 08:35:09 -05:00
|
|
|
<xsl:choose>
|
2014-12-29 10:32:52 -05:00
|
|
|
<xsl:when test="source">
|
|
|
|
<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" />
|
|
|
|
<h4>Play stream</h4>
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="authenticator">
|
|
|
|
<a class="play" href="/auth.xsl">Auth</a>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<a class="play" href="{@mount}.m3u">► <span>M3U</span></a>
|
|
|
|
<xsl:text> </xsl:text>
|
|
|
|
<a class="play" href="{@mount}.xspf">► <span>XSPF</span></a>
|
|
|
|
<xsl:text> </xsl:text>
|
|
|
|
<a class="play" href="{@mount}.vclt">► <span>VCLT</span></a>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
<p><xsl:value-of select="listeners" /> Listener(s)</p>
|
|
|
|
|
|
|
|
<!-- 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>
|
2014-03-02 08:35:09 -05:00
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
2014-12-29 10:32:52 -05:00
|
|
|
<div class="aside error">
|
|
|
|
<strong>No mounts!</strong> There are no active mountpoints.
|
|
|
|
</div>
|
2014-03-02 08:35:09 -05:00
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</div>
|
2014-12-29 10:32:52 -05:00
|
|
|
</xsl:template>
|
2018-05-05 02:40:25 -04:00
|
|
|
</xsl:stylesheet>
|