1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

Feature: Styled action buttons and columns

This commit is contained in:
Philipp Schafft 2020-10-01 20:59:36 +00:00
parent 4f75f4f296
commit f4d4b8eaba
3 changed files with 32 additions and 9 deletions

View File

@ -26,7 +26,7 @@
<th>Role</th>
<th>Sec. connected</th>
<th>User Agent</th>
<th>Action</th>
<th class="actions">Action</th>
</tr>
</thead>
<tbody>
@ -37,9 +37,8 @@
<td><xsl:value-of select="role" /></td>
<td><xsl:value-of select="connected" /></td>
<td><xsl:value-of select="useragent" /></td>
<td>
<a href="killclient.xsl?mount={../@mount}&amp;id={id}">Kick</a>
&#160;
<td class="actions">
<a class="critical" href="killclient.xsl?mount={../@mount}&amp;id={id}">Kick</a>
<a href="moveclients.xsl?mount={../@mount}&amp;id={id}">Move</a>
</td>
</tr>

View File

@ -28,7 +28,7 @@
<tr>
<th>User</th>
<xsl:if test="@can-deleteuser = 'true'">
<th>Action</th>
<th class="actions">Action</th>
</xsl:if>
</tr>
</thead>
@ -37,8 +37,8 @@
<tr>
<td><xsl:value-of select="username" /></td>
<xsl:if test="../../@can-deleteuser = 'true'">
<td>
<a href="manageauth.xsl?id={../../@id}&amp;username={username}&amp;action=delete">Delete</a>
<td class="actions">
<a class="critical" href="manageauth.xsl?id={../../@id}&amp;username={username}&amp;action=delete">Delete</a>
</td>
</xsl:if>
</tr>

View File

@ -149,8 +149,32 @@ ul.boxnav > li > a {
display: inline-block;
}
ul.boxnav > li.critical > a {
background-color: #ff704d;
ul.boxnav > li.critical > a, a.critical {
background-color: #ff704d !important;
}
th.actions {
width: 10%;
}
td.actions {
display: flex;
flex-direction: column;
}
td.actions > a {
background-color: #4f8cb0;
border: none;
color: white;
padding: 0.5em;
margin-top: 0.2em;
text-align: center;
text-decoration: none;
display: inline-block;
}
td.actions > a:first-child {
margin-top: 0;
}
/* Playlists list style */