Don't show facet in cog menu if not allow_facet, closes #1683

This commit is contained in:
Simon Willison 2022-03-24 12:16:19 -07:00
commit c496f2b663
4 changed files with 26 additions and 2 deletions

View file

@ -5,6 +5,7 @@
{% block extra_head %}
{{- super() -}}
<script src="{{ urls.static('table.js') }}" defer></script>
<script>DATASETTE_ALLOW_FACET = {{ datasette_allow_facet }};</script>
<style>
@media only screen and (max-width: 576px) {
{% for column in display_columns -%}