Skip to content

Commit

Permalink
Shom message if no enrichments available, closes #43
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Mar 26, 2024
1 parent 6f00c72 commit c8049bb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions datasette_enrichments/templates/enrichment_picker.html
Expand Up @@ -24,6 +24,11 @@ <h1>Enrich data in {{ table }}</h1>
<p>{{ "{:,}".format(filtered_data.count) }} row{% if filtered_data.count != 1 %}s{% endif %} selected
{{ filtered_data.human_description_en }}</p>

{% if not enrichments_and_paths %}

<p><strong>No enrichments available</strong>. You may need to install and configure additional enrichment plugins.</p>

{% else %}
<h2>Select an enrichment</h2>

<dl class="enrichments">
Expand All @@ -32,5 +37,6 @@ <h2>Select an enrichment</h2>
<dd>{{ enrichment_and_path.enrichment.description }}</dd>
{% endfor %}
</dl>
{% endif %}

{% endblock %}

0 comments on commit c8049bb

Please sign in to comment.