mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Feature: Allow mangement of <role>s via admin/ interface.
Updated admin/manageauth.xsl the way suggested by
0eb466b76d
.
closes #2123
This commit is contained in:
parent
0eb466b76d
commit
a83ac3f5e1
@ -27,9 +27,9 @@
|
|||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
</div>
|
</div>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<xsl:for-each select="source">
|
<xsl:for-each select="role">
|
||||||
<div class="roundbox">
|
<div class="roundbox">
|
||||||
<h3>Mountpoint <xsl:value-of select="@mount" />
|
<h3>Role <xsl:value-of select="@name" /> (<xsl:value-of select="@type" />)
|
||||||
<xsl:if test="server_name">
|
<xsl:if test="server_name">
|
||||||
<small><xsl:value-of select="server_name" /></small>
|
<small><xsl:value-of select="server_name" /></small>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
@ -41,7 +41,7 @@
|
|||||||
<li><a href="manageauth.xsl?mount={@mount}">Manage Authentication</a></li>
|
<li><a href="manageauth.xsl?mount={@mount}">Manage Authentication</a></li>
|
||||||
<li><a href="killsource.xsl?mount={@mount}">Kill Source</a></li>
|
<li><a href="killsource.xsl?mount={@mount}">Kill Source</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<xsl:if test="User">
|
<xsl:if test="users">
|
||||||
<table class="colortable">
|
<table class="colortable">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -50,20 +50,27 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<xsl:variable name="themount"><xsl:value-of select="@mount" /></xsl:variable>
|
<xsl:for-each select="users/user">
|
||||||
<xsl:for-each select="User">
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<xsl:value-of select="username" />
|
<xsl:value-of select="username" />
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="manageauth.xsl?mount={$themount}&username={username}&action=delete">Delete</a>
|
<xsl:choose>
|
||||||
|
<xsl:when test="../../@can-deleteuser = 'true'">
|
||||||
|
<a href="manageauth.xsl?id={../../@id}&username={username}&action=delete">Delete</a>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
<xsl:if test="@can-adduser = 'true'">
|
||||||
<form class="alignedform" method="get" action="/admin/manageauth.xsl">
|
<form class="alignedform" method="get" action="/admin/manageauth.xsl">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>Add new user</legend>
|
<legend>Add new user</legend>
|
||||||
@ -75,11 +82,12 @@
|
|||||||
<label for="password">Password:</label>
|
<label for="password">Password:</label>
|
||||||
<input type="password" id="password" name="password"/>
|
<input type="password" id="password" name="password"/>
|
||||||
</p>
|
</p>
|
||||||
<input type="hidden" name="mount" value="{@mount}"/>
|
<input type="hidden" name="id" value="{@id}"/>
|
||||||
<input type="hidden" name="action" value="add"/>
|
<input type="hidden" name="action" value="add"/>
|
||||||
<input type="Submit" value="Add"/>
|
<input type="Submit" value="Add"/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
</xsl:if>
|
||||||
</div>
|
</div>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
|
Loading…
Reference in New Issue
Block a user