Commit fcd3a10e authored by Mathieu Bridon's avatar Mathieu Bridon

radio: Make a nicer list out of the theme filters

Relates to #8
parent e20bf0ce
.no-underline {
text-decoration: none;
}
......@@ -3,6 +3,7 @@
{% block extra_head %}
<link rel="stylesheet" type="text/css" href="{% static "mediacenter/mediacenter.css" %}">
<link rel="stylesheet" type="text/css" href="{% static "irfi/overrides.css" %}">
{% endblock %}
{% block body_class %}mediacenter{% endblock %}
......
......@@ -3,13 +3,17 @@
{% if available_themes %}
<div class="card tinted">
<h4><span class="theme discover">{% trans "browse" %}</span> {% trans 'by theme' %}</h4>
<ul>
{% for theme, label in available_themes %}
{% is_in_qs 'theme' theme as in_qs %}
<li>
{% if in_qs %}
<a href="{% remove_qs theme=theme %}" class="flatlist active">{{ label|capfirst }}</a>
<a href="{% remove_qs theme=theme %}" class="flatlist no-underline active">{{ label|capfirst }}</a>
{% else %}
<a href="{% replace_qs theme=theme %}" class="flatlist">{{ label|capfirst }}</a>
<a href="{% replace_qs theme=theme %}" class="flatlist no-underline">{{ label|capfirst }}</a>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
{% endif %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment