-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstatus.xsl
46 lines (46 loc) · 2.03 KB
/
status.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" doctype-system="about:legacy-compat" encoding="UTF-8" indent="yes" />
<xsl:template match="/icestats">
<html>
<head>
<title>HMSU Radio Server</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous" />
<link rel="stylesheet" type="text/css" href="radio.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
</head>
<body id="back">
<div class="container-fluid">
<xsl:choose>
<xsl:when test="source">
<div class="col-md-12 text-center"><img src="hmsu-logo-mazaloweb-1.png" width="360px" /></div>
<div class="col-md-12 text-center">
<h2 style="color: #656565;">HMSU Online Radio</h2>
<!-- <h6 style="color: #656565;">LOW QUALITY STREAM - 96kbps</h6> -->
</div>
</xsl:when>
<xsl:otherwise>
<div class="col-md-12 text-center">
<img src="hmsu-logo-mazaloweb-1.png"/>
</div>
<div class="col-md-12 text-center">
<h2>No Stream Available</h2>
</div>
</xsl:otherwise>
</xsl:choose>
<div class="col-md-12 text-center">
<!--mount point stats-->
<xsl:for-each select="source">
<xsl:choose>
<xsl:when test="listeners">
<audio xmlns="http://www.w3.org/1999/xhtml" controls="controls" preload="none"><source src="/bass" type="audio/mpeg" /></audio>
<!-- <div class="col-md-12 text-center">For high quality you could try <a href="https://radio2.hmsu.org">radio2.hmsu.org</a></div> -->
</xsl:when>
</xsl:choose>
</xsl:for-each>
<div class="col-md-12 text-center"><a href="https://t.me/joinchat/G31X6xAaWZ0PQHqif5Ukvw">Join <strong>H.M.S.U. Radio</strong> Telegram Group</a></div>
</div>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>