{% load custom_filters %}
{% if facet_pairs_list %}
  <h2>{{ field_name|get_facet_label }}</h2>
  <div id="{{ field_name }}">
  {% for facet_pairs in facet_pairs_list %}
    {% for name, count in facet_pairs.items %}
      <a href="./index.html?{{ field_name|get_fq_str:name|get_facet_link:inparams }}">{{ name }}({{ count }})</a><br>
    {% endfor %}
  {% endfor %}
  </div>
{% endif %}
