{% from "player/_icons.html" import delete_icon, play_icon, queue_add_icon, search_icon, star_icon %}
{% include "player/_page_title.html" %} {% if show_filter_form %}
{% for artist in query.artists %} {% endfor %}
{% if show_filter_controls %}
Genres{% if selected_genre_filter_count %}: {{ selected_genre_filter_count_label }}{% endif %}
{% for group in filters.genre_groups %} {% set group_index = loop.index0 %}
{% for style in group.styles %} {% endfor %}
{% else %}
No genres found.
{% endfor %}
{% endif %}
Search{% if query.search %}:{% endif %} {% if query.search %} {{ query.search }} {% endif %}
{% if show_sort_controls %} {% set selected_sort = namespace(label=sort_options[0][1]) %} {% for value, label in sort_options %} {% if query.sort == value %} {% set selected_sort.label = label %} {% endif %} {% endfor %}
Sort: {{ selected_sort.label }}
{% for value, label in sort_options %} {% endfor %}
{% endif %} {{ delete_icon("clear-icon") }}Clear
{% endif %}
{% if albums %}
{% for album in albums %}
{% set art_url = album|album_art_url %} {% if art_url %} {% else %} {% endif %} {% if album.track_count %}
{% endif %}
{{ album.album|display_album_title }} {% if not album.is_playlist %} {% endif %} {% set artist_links = album|album_artist_links(query) %} {% if artist_links %} {%- for item in artist_links -%} {{ item.label }}{% if not loop.last %}, {% endif %} {%- endfor -%} {% else %} {% if album.is_playlist %}Playlist{% else %}{{ album.artist }}{% endif %} {% endif %}
{% endfor %}
{% else %}
{{ empty_message }}
{% endif %}
{% if show_pagination_controls %} {% endif %}