diff --git a/InvenTree/part/templatetags/plugin_extras.py b/InvenTree/part/templatetags/plugin_extras.py index f400ab94ad..6f214340f7 100644 --- a/InvenTree/part/templatetags/plugin_extras.py +++ b/InvenTree/part/templatetags/plugin_extras.py @@ -19,3 +19,9 @@ def plugin_list(*args, **kwargs): def plugin_settings(plugin, *args, **kwargs): """ Return a list of all settings for a plugin """ return djangosettings.INTEGRATION_PLUGIN_SETTING.get(plugin) + + +@register.simple_tag() +def mixin_enabled(plugin, key, *args, **kwargs): + """ Return if the mixin is existant and configured in the plugin """ + return plugin.mixin_enabled(key) diff --git a/InvenTree/templates/InvenTree/settings/plugin.html b/InvenTree/templates/InvenTree/settings/plugin.html index 688cb19c45..44b486abae 100644 --- a/InvenTree/templates/InvenTree/settings/plugin.html +++ b/InvenTree/templates/InvenTree/settings/plugin.html @@ -25,12 +25,15 @@
{% plugin_list as pl_list %} {% for plugin_key, plugin in pl_list.items %} + {% mixin_enabled plugin 'urls' as urls %} + {% mixin_enabled plugin 'settings' as settings %} +{% blocktrans %}The Base-URL for this plugin is {{ base }}.{% endblocktrans %}