{% macro bs_filters(filter_title, filter_display, init_str=None) -%}
{% for filter_field, filters in filter_display.items() -%}
    {% if filters|length > 0 %}
        {%- if init_str is not none %}{{ init_str }}{% set init_str=None %}{%- endif %}
        <span class="badge">{{ filter_title[filter_field] }}</span>
        {% for filter_name in filters %}
            <span class="label label-info">{{ filter_name }}</span>
        {% endfor %}
    {% endif %}
{%- endfor %}
{%- endmacro %}
