From c8049bb26863413141c76797e32c14a87578d998 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 26 Mar 2024 09:24:52 -0700 Subject: [PATCH] Shom message if no enrichments available, closes #43 --- datasette_enrichments/templates/enrichment_picker.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/datasette_enrichments/templates/enrichment_picker.html b/datasette_enrichments/templates/enrichment_picker.html index a1c3934..9854739 100644 --- a/datasette_enrichments/templates/enrichment_picker.html +++ b/datasette_enrichments/templates/enrichment_picker.html @@ -24,6 +24,11 @@

Enrich data in {{ table }}

{{ "{:,}".format(filtered_data.count) }} row{% if filtered_data.count != 1 %}s{% endif %} selected {{ filtered_data.human_description_en }}

+{% if not enrichments_and_paths %} + +

No enrichments available. You may need to install and configure additional enrichment plugins.

+ +{% else %}

Select an enrichment

@@ -32,5 +37,6 @@

Select an enrichment

{{ enrichment_and_path.enrichment.description }}
{% endfor %}
+{% endif %} {% endblock %}