Wrap _footer.html content in a Jinja block so it can be easily extended and included in a custom _footer template. Fixes #2410

This commit is contained in:
Benjamin King 2024-08-25 14:40:16 -05:00 committed by Benjamin King
commit 9c86214f44

View file

@ -1,3 +1,4 @@
{% block footer_content %}
Powered by <a href="https://datasette.io/" title="Datasette v{{ datasette_version }}">Datasette</a>
{% if query_ms %}&middot; Queries took {{ query_ms|round(3) }}ms{% endif %}
{% if metadata %}
@ -19,3 +20,4 @@ Powered by <a href="https://datasette.io/" title="Datasette v{{ datasette_versio
{% endif %}{{ metadata.about or metadata.about_url }}{% if metadata.about_url %}</a>{% endif %}
{% endif %}
{% endif %}
{% endblock %}