From f07df107a93d76b6cd145b71a7109b1c8f404bbf Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 6 Oct 2021 10:56:21 +0200 Subject: [PATCH] only show if info present --- InvenTree/templates/InvenTree/settings/plugin.html | 1 + InvenTree/templates/InvenTree/settings/plugin_settings.html | 2 ++ 2 files changed, 3 insertions(+) diff --git a/InvenTree/templates/InvenTree/settings/plugin.html b/InvenTree/templates/InvenTree/settings/plugin.html index 69988f902b..c517b72917 100644 --- a/InvenTree/templates/InvenTree/settings/plugin.html +++ b/InvenTree/templates/InvenTree/settings/plugin.html @@ -33,6 +33,7 @@ {{ plugin.human_name }} - {{plugin_key}} {% define plugin.registered_mixins as mixin_list %} + {% if mixin_list %} {% for mixin in mixin_list %} diff --git a/InvenTree/templates/InvenTree/settings/plugin_settings.html b/InvenTree/templates/InvenTree/settings/plugin_settings.html index a8e7411ad9..5e516b0d63 100644 --- a/InvenTree/templates/InvenTree/settings/plugin_settings.html +++ b/InvenTree/templates/InvenTree/settings/plugin_settings.html @@ -32,11 +32,13 @@ {% trans "Date" %} {{ plugin.pub_date }}{% include "clip.html" %} + {% if plugin.version %} {% trans "Version" %} {{ plugin.version }}{% include "clip.html" %} + {% endif %} {% if plugin.website %}