diff --git a/datasette/app.py b/datasette/app.py index 75f05d8816..fab89da139 100644 --- a/datasette/app.py +++ b/datasette/app.py @@ -2052,6 +2052,7 @@ async def menu_links(): and "ds_actor" in request.cookies and request.actor, "app_css_hash": self.app_css_hash(), + "static_hash": self.static_hash, "zip": zip, "body_scripts": body_scripts, "format_bytes": format_bytes, diff --git a/datasette/handle_exception.py b/datasette/handle_exception.py index 96398a4c9f..3c78e6fd98 100644 --- a/datasette/handle_exception.py +++ b/datasette/handle_exception.py @@ -67,6 +67,7 @@ async def inner(): info, urls=datasette.urls, app_css_hash=datasette.app_css_hash(), + static_hash=datasette.static_hash, menu_links=lambda: [], ) ), diff --git a/datasette/templates/base.html b/datasette/templates/base.html index e1767debaa..23814d6a31 100644 --- a/datasette/templates/base.html +++ b/datasette/templates/base.html @@ -8,7 +8,7 @@ {% endfor %} - + {% for url in extra_js_urls %} {% endfor %} @@ -70,7 +70,7 @@ {% endfor %} {% if select_templates %}{% endif %} - + diff --git a/datasette/templates/table.html b/datasette/templates/table.html index c841e1bed0..e5dd5deda3 100644 --- a/datasette/templates/table.html +++ b/datasette/templates/table.html @@ -4,9 +4,9 @@ {% block extra_head %} {{- super() -}} - - - + + +