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 @@ ...@@ -3,6 +3,7 @@
{% block extra_head %} {% block extra_head %}
<link rel="stylesheet" type="text/css" href="{% static "mediacenter/mediacenter.css" %}"> <link rel="stylesheet" type="text/css" href="{% static "mediacenter/mediacenter.css" %}">
<link rel="stylesheet" type="text/css" href="{% static "irfi/overrides.css" %}">
{% endblock %} {% endblock %}
{% block body_class %}mediacenter{% endblock %} {% block body_class %}mediacenter{% endblock %}
......
...@@ -3,13 +3,17 @@ ...@@ -3,13 +3,17 @@
{% if available_themes %} {% if available_themes %}
<div class="card tinted"> <div class="card tinted">
<h4><span class="theme discover">{% trans "browse" %}</span> {% trans 'by theme' %}</h4> <h4><span class="theme discover">{% trans "browse" %}</span> {% trans 'by theme' %}</h4>
{% for theme, label in available_themes %} <ul>
{% is_in_qs 'theme' theme as in_qs %} {% for theme, label in available_themes %}
{% if in_qs %} {% is_in_qs 'theme' theme as in_qs %}
<a href="{% remove_qs theme=theme %}" class="flatlist active">{{ label|capfirst }}</a> <li>
{% else %} {% if in_qs %}
<a href="{% replace_qs theme=theme %}" class="flatlist">{{ label|capfirst }}</a> <a href="{% remove_qs theme=theme %}" class="flatlist no-underline active">{{ label|capfirst }}</a>
{% endif %} {% else %}
{% endfor %} <a href="{% replace_qs theme=theme %}" class="flatlist no-underline">{{ label|capfirst }}</a>
{% endif %}
</li>
{% endfor %}
</ul>
</div> </div>
{% endif %} {% 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