From 71128a1c8e643c046f75a8dc88e72113603ed0c1 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 6 May 2022 22:57:15 +1000 Subject: [PATCH] Refactor the plugin javascript template - Can appear in "base.html" - Only renders anything if there are actually plugins available for the page --- InvenTree/part/templates/part/detail.html | 2 -- InvenTree/templates/base.html | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html index cd8404be5b..e2e3d27be0 100644 --- a/InvenTree/part/templates/part/detail.html +++ b/InvenTree/part/templates/part/detail.html @@ -1085,6 +1085,4 @@ } }); - {% include "panel/plugin_javascript.html" %} - {% endblock %} diff --git a/InvenTree/templates/base.html b/InvenTree/templates/base.html index 483a8ca6ad..7dbb17c7d8 100644 --- a/InvenTree/templates/base.html +++ b/InvenTree/templates/base.html @@ -209,6 +209,9 @@