{% extends 'base.html' %} {% block content %}
Radio station control
{% if not enabled %}
{% if current %}Should be playing{% else %}Should be playing nothing{% endif %}
{% if current %}{{ stations[current]['title'] }}{% else %}No control until player is enabled{% endif %}
{% if current %}{{ stations[current]['genre'] }}{% endif %}

{% if current %}{{ stations[current]['description'] }}{% endif %}

{% else %}
{% if current %}Now playing{% else %}Playing nothing{% endif %}
{% if current %}{{ stations[current]['title'] }}{% else %}Select a radio station from below to play{% endif %}
{% if current %}{{ stations[current]['genre'] }}{% endif %}

{% if current %}{{ stations[current]['description'] }}{% endif %}

{% if current %}
{% endif %}

{% for station in stations %} {% if ObjectId(station) in location.config.enabled_stations and station != current %}
{{ stations[station]['title'] }}
{{ stations[station]['genre'] }}

{{ stations[station]['description'] }}

{% endif %} {% endfor %}
{% endif %} {% endblock %}