2020-10-09 05:36:03 -04:00
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
2014-12-29 10:32:52 -05:00
|
|
|
<!-- 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">Listener Stats</xsl:variable>
|
2014-12-29 10:32:52 -05:00
|
|
|
|
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-12-29 10:32:52 -05:00
|
|
|
|
|
|
|
<xsl:for-each select="source">
|
2020-10-01 10:52:08 -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:52:08 -04:00
|
|
|
<h4>Listeners</h4>
|
2014-12-29 10:32:52 -05:00
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="listener">
|
|
|
|
<table class="table-flipscroll">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>IP</th>
|
|
|
|
<th>Username</th>
|
|
|
|
<th>Role</th>
|
|
|
|
<th>Sec. connected</th>
|
|
|
|
<th>User Agent</th>
|
2020-10-01 16:59:36 -04:00
|
|
|
<th class="actions">Action</th>
|
2014-12-29 10:32:52 -05:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<xsl:for-each select="listener">
|
|
|
|
<tr>
|
|
|
|
<td><xsl:value-of select="ip" /></td>
|
|
|
|
<td><xsl:value-of select="username" /></td>
|
|
|
|
<td><xsl:value-of select="role" /></td>
|
|
|
|
<td><xsl:value-of select="connected" /></td>
|
|
|
|
<td><xsl:value-of select="useragent" /></td>
|
2020-10-01 16:59:36 -04:00
|
|
|
<td class="actions">
|
2020-10-03 06:47:12 -04:00
|
|
|
<a class="critical" href="/admin/killclient.xsl?mount={../@mount}&id={id}">Kick</a>
|
|
|
|
<a href="/admin/moveclients.xsl?mount={../@mount}&id={id}">Move</a>
|
2020-09-30 15:47:05 -04:00
|
|
|
</td>
|
2014-12-29 10:32:52 -05:00
|
|
|
</tr>
|
|
|
|
</xsl:for-each>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<p>No listeners connected</p>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
2020-10-01 10:52:08 -04:00
|
|
|
</section>
|
2014-12-29 10:32:52 -05:00
|
|
|
</xsl:for-each>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</xsl:template>
|
2018-05-05 02:40:25 -04:00
|
|
|
</xsl:stylesheet>
|