{% load custom_filters %}
{% load custom_tags %}
{% if_render_facet_queries category rsp.facet_counts.facet_queries %}
  <h2>{{ category }}</h2>
  <div>
   {% for query_entry in category_list %}
     {% for name,query in query_entry.iteritems %}
       {% if_render_facet_query query rsp.facet_counts.facet_queries %}
         <a href="./index.html?{{ query|get_facet_link:inparams }}">{{ name }}({{ query|get_facet_query_count:rsp.facet_counts.facet_queries }})</a><br>
       {% endif_render_facet_query %}
     {% endfor %}
   {% endfor %}
  </div>
{% endif_render_facet_queries %}
