Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marvin Scholz
Icecast-Server
Commits
a83ac3f5
Commit
a83ac3f5
authored
Dec 19, 2014
by
Philipp Schafft
🦁
Browse files
Feature: Allow mangement of <role>s via admin/ interface.
Updated admin/manageauth.xsl the way suggested by
0eb466b7
. closes
#2123
parent
0eb466b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
admin/manageauth.xsl
View file @
a83ac3f5
...
...
@@ -27,9 +27,9 @@
</xsl:for-each>
</div>
</xsl:if>
<xsl:for-each
select=
"
sourc
e"
>
<xsl:for-each
select=
"
rol
e"
>
<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"
>
<small><xsl:value-of
select=
"server_name"
/></small>
</xsl:if>
...
...
@@ -41,7 +41,7 @@
<li><a
href=
"manageauth.xsl?mount={@mount}"
>
Manage Authentication
</a></li>
<li><a
href=
"killsource.xsl?mount={@mount}"
>
Kill Source
</a></li>
</ul>
<xsl:if
test=
"
U
ser"
>
<xsl:if
test=
"
u
ser
s
"
>
<table
class=
"colortable"
>
<thead>
<tr>
...
...
@@ -50,36 +50,44 @@
</tr>
</thead>
<tbody>
<xsl:variable
name=
"themount"
><xsl:value-of
select=
"@mount"
/></xsl:variable>
<xsl:for-each
select=
"User"
>
<xsl:for-each
select=
"users/user"
>
<tr>
<td>
<xsl:value-of
select=
"username"
/>
</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>
</tr>
</xsl:for-each>
</tbody>
</table>
</xsl:if>
<form
class=
"alignedform"
method=
"get"
action=
"/admin/manageauth.xsl"
>
<fieldset>
<legend>
Add new user
</legend>
<p>
<label
for=
"username"
>
Username:
</label>
<input
type=
"text"
id=
"username"
name=
"username"
/>
</p>
<p>
<label
for=
"password"
>
Password:
</label>
<input
type=
"password"
id=
"password"
name=
"password"
/>
</p>
<input
type=
"hidden"
name=
"mount"
value=
"{@mount}"
/>
<input
type=
"hidden"
name=
"action"
value=
"add"
/>
<input
type=
"Submit"
value=
"Add"
/>
</fieldset>
</form>
<xsl:if
test=
"@can-adduser = 'true'"
>
<form
class=
"alignedform"
method=
"get"
action=
"/admin/manageauth.xsl"
>
<fieldset>
<legend>
Add new user
</legend>
<p>
<label
for=
"username"
>
Username:
</label>
<input
type=
"text"
id=
"username"
name=
"username"
/>
</p>
<p>
<label
for=
"password"
>
Password:
</label>
<input
type=
"password"
id=
"password"
name=
"password"
/>
</p>
<input
type=
"hidden"
name=
"id"
value=
"{@id}"
/>
<input
type=
"hidden"
name=
"action"
value=
"add"
/>
<input
type=
"Submit"
value=
"Add"
/>
</fieldset>
</form>
</xsl:if>
</div>
</xsl:for-each>
<div
id=
"footer"
>
...
...
@@ -88,4 +96,4 @@
</body>
</html>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
</xsl:stylesheet>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment