Commit ddb58bfe authored by Philipp Schafft's avatar Philipp Schafft 🦁
Browse files

Feature: Display username and role in listener listing

This adds display of role name and updates display of username in
listener listing of mount points on admin interface.
parent bfd94652
...@@ -55,6 +55,8 @@ ...@@ -55,6 +55,8 @@
<thead> <thead>
<tr> <tr>
<td>IP</td> <td>IP</td>
<td>Sec. connected</td> <td>Sec. connected</td>
<td>User Agent</td> <td>User Agent</td>
<td>Action</td> <td>Action</td>
...@@ -64,12 +66,9 @@ ...@@ -64,12 +66,9 @@
<xsl:variable name = "themount"><xsl:value-of select="@mount" /></xsl:variable> <xsl:variable name = "themount"><xsl:value-of select="@mount" /></xsl:variable>
<xsl:for-each select="listener"> <xsl:for-each select="listener">
<tr> <tr>
<td> <td><xsl:value-of select="ip" /></td>
<xsl:value-of select="ip" /> <td><xsl:value-of select="username" /></td>
<xsl:if test="username"> <td><xsl:value-of select="role" /></td>
(<xsl:value-of select="username" />)
<td><xsl:value-of select="connected" /></td> <td><xsl:value-of select="connected" /></td>
<td><xsl:value-of select="useragent" /></td> <td><xsl:value-of select="useragent" /></td>
<td><a href="killclient.xsl?mount={$themount}&amp;id={id}">Kick</a></td> <td><a href="killclient.xsl?mount={$themount}&amp;id={id}">Kick</a></td>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment