1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-23 06:25:24 +00:00

Update: Converted message boxes to <aside>

This commit is contained in:
Philipp Schafft 2020-10-01 23:47:11 +00:00
parent 6931390325
commit 46d48fb4f3
5 changed files with 12 additions and 8 deletions

View File

@ -54,9 +54,9 @@
</xsl:for-each> </xsl:for-each>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<div class="aside info"> <aside class="info">
<strong>No mounts!</strong> There are no active mountpoints. <strong>No mounts!</strong> There are no active mountpoints.
</div> </aside>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</div> </div>

View File

@ -10,9 +10,9 @@
<div class="section"> <div class="section">
<h2><xsl:value-of select="$title" /></h2> <h2><xsl:value-of select="$title" /></h2>
<xsl:if test="iceresponse"> <xsl:if test="iceresponse">
<div class="aside error"> <aside class="error">
<xsl:value-of select="iceresponse/message" /> <xsl:value-of select="iceresponse/message" />
</div> </aside>
</xsl:if> </xsl:if>
<xsl:for-each select="role"> <xsl:for-each select="role">
<section class="box"> <section class="box">

View File

@ -43,10 +43,10 @@
</form> </form>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<p class="warning"> <aside class="warning">
<strong>No mounts!</strong> <strong>No mounts!</strong>
There are no other mountpoints you could move the listeners to. There are no other mountpoints you could move the listeners to.
</p> </aside>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</section> </section>

View File

@ -17,10 +17,10 @@
<xsl:call-template name="mountnav" /> <xsl:call-template name="mountnav" />
<h4>Update Metadata</h4> <h4>Update Metadata</h4>
<xsl:if test="content-type and not((content-type = 'application/mpeg') or (content-type = 'audio/aac') or (content-type = 'audio/aacp'))"> <xsl:if test="content-type and not((content-type = 'application/mpeg') or (content-type = 'audio/aac') or (content-type = 'audio/aacp'))">
<p class="warning"> <aside class="warning">
<strong>Warning</strong> <strong>Warning</strong>
This is only supported for legacy codecs using ICY as transport such as MP3 and AAC. This is only supported for legacy codecs using ICY as transport such as MP3 and AAC.
</p> </aside>
</xsl:if> </xsl:if>
<form method="post" action="/admin/metadata.xsl"> <form method="post" action="/admin/metadata.xsl">
<input type="hidden" name="mount" value="{@mount}" /> <input type="hidden" name="mount" value="{@mount}" />

View File

@ -304,6 +304,10 @@ h1, h2, h3, h5 {
color: #001826; color: #001826;
} }
aside {
margin: 0.4em;
}
/* Error messages */ /* Error messages */
.error { .error {