From c7eceb021fd0b13527aff83bb98c350f549c7719 Mon Sep 17 00:00:00 2001 From: Ed Rivas Date: Sun, 9 Aug 2020 09:35:19 -0600 Subject: [PATCH] refactor: remove the "javascripts" block In accordance to stephenmcd/grappelli-safe@04a890000bfed05c710d85e2196c0b015cfd6de2 --- filebrowser_safe/templates/filebrowser/index.html | 6 ++---- filebrowser_safe/templates/filebrowser/upload.html | 5 ++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/filebrowser_safe/templates/filebrowser/index.html b/filebrowser_safe/templates/filebrowser/index.html index 31b4117..9caf1fd 100644 --- a/filebrowser_safe/templates/filebrowser/index.html +++ b/filebrowser_safe/templates/filebrowser/index.html @@ -11,7 +11,7 @@ {% endblock %} -{% block javascripts %} +{% block extrahead %} {{ block.super }} {% ifequal query.pop '1' %} @@ -32,8 +32,6 @@ {% endifequal %} -{{ media }} - {% if not actions_on_top and not actions_on_bottom %} @@ -41,7 +39,7 @@ #changelist table thead th:first-child { width: inherit; } {% endif %} -{% endblock %} +{% endblock extrahead %} {% block rtl_styles %} {{ block.super }} diff --git a/filebrowser_safe/templates/filebrowser/upload.html b/filebrowser_safe/templates/filebrowser/upload.html index d693853..bafca56 100644 --- a/filebrowser_safe/templates/filebrowser/upload.html +++ b/filebrowser_safe/templates/filebrowser/upload.html @@ -16,11 +16,10 @@ {% endblock %} -{% block javascripts %} +{% block extrahead %} {{ block.super }} - -{% endblock %} +{% endblock extrahead %} {% block coltype %}colM{% endblock %}