Initial implementation of suggested facets

Causes tests to break at the moment
This commit is contained in:
Simon Willison 2018-05-14 19:09:42 -03:00
commit ce84d76fff
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
2 changed files with 36 additions and 0 deletions

View file

@ -91,6 +91,10 @@
<p>This data as <a href="{{ url_json }}">.json</a></p>
{% if suggested_facets %}
<p>Suggested facets: {% for facet in suggested_facets %}<a href="{{ facet.toggle_url }}">{{ facet.name }}</a> {% endfor %}
{% endif %}
{% for facet_name, facet_values in facet_results.items() %}
<p><strong>{{ facet_name }}</strong></p>
<ul>