stream.html 1.53 KB
Newer Older
Andreas Mieke's avatar
Andreas Mieke committed
1 2 3 4
<div class="container-fluid well well-sm">
	<div class="row">
		<div class="col-sm-11">
			{% if server.url %}
5
				<h4><a href="{{ server.url }}">{{ server.stream_name }}</a>
Andreas Mieke's avatar
Andreas Mieke committed
6
			{% else %}
7
				<h4>{{ server.stream_name }}
Andreas Mieke's avatar
Andreas Mieke committed
8 9 10 11 12 13 14 15
			{% endif %}
			{% if !server.listeners %} {% set server.listeners = "0" %} {% endif %}
			{% if server.listeners == "1" %}
				<small>{{ server.listeners }}&nbsp;Listener</small></h4>
			{% else %}
				<small>{{ server.listeners }}&nbsp;Listeners</small></h4>
			{% endif %}
		</div>
16 17 18 19 20
		{% for listenurl in server.listenurls %}
			{% if loop.first %}
			<div class="col-sm-1 hidden-xs streamentry" style="padding-left: 0" data-contenttype="{{ server.stream_type }}" data-listenurl="{{ listenurl }}" data-streamname="{{ server.stream_name }}"></div>
			{% endif %}
		{% endfor %}
Andreas Mieke's avatar
Andreas Mieke committed
21 22 23 24
	</div>
	<p class="description">{{ server.description }}</p>
	{% if !server.songname %} {% set server.songname = "Unknown" %} {% endif %}
	<p class="songname"><b>On Air:</b> <i>{{ server.songname }}</i></p>
25
	<p class="genres"><b>Genres:</b>
Andreas Mieke's avatar
Andreas Mieke committed
26
		{% for genre in server.genres %}
27
			<a href="/search/?genre={{ genre }}" class="label label-default">{{ genre }}</a>
Andreas Mieke's avatar
Andreas Mieke committed
28 29
		{% endfor %}
	</p>
30 31 32
	<p class="tunein"><b>Tune in:</b> <a href="/listen/{{ server.id }}/listen.m3u">M3U</a> | <a href="/listen/{{ server.id }}/listen.xspf">XSPF</a></p>
	{% for format in server.codec_sub_types %}
		{% if loop.first %}
33
		<p class="codec"><a href="/search/?format={{ format }}">{{ format }}</a>
34 35 36 37
		{% endif %}
	{% endfor %}
	<!--p class="format">{{ server.stream_type }}</p-->
</div>