From 267c5ca40c7d8dcbf137d1e4be1222afcbae3305 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 4 Nov 2021 13:30:40 +0100 Subject: [PATCH] show install method for plugin --- .../InvenTree/settings/plugin_settings.html | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/InvenTree/templates/InvenTree/settings/plugin_settings.html b/InvenTree/templates/InvenTree/settings/plugin_settings.html index 3aac7bf845..dc243899b9 100644 --- a/InvenTree/templates/InvenTree/settings/plugin_settings.html +++ b/InvenTree/templates/InvenTree/settings/plugin_settings.html @@ -48,7 +48,7 @@ {% endif %} - {% if plugin.is_package==False %} + {% if plugin.is_package == False %}

{% trans 'The code information is pulled from the latest git commit for this plugin. It might not reflect official version numbers or information but the actual code running.' %}

{% endif %} @@ -56,7 +56,18 @@

{% trans "Package information" %}

- {% if plugin.is_package==False %} + + + + + + {% if plugin.is_package == False %} @@ -73,10 +84,6 @@ - {% else %} - - - {% endif %}
{% trans "Installation method" %} + {% if plugin.is_package %} + {% trans "This plugin was installed as a package" %} + {% else %} + {% trans "This plugin was found in a local InvenTree path" %} + {% endif %} +
{% trans "Commit Author" %}{{ plugin.package.author }} - {{ plugin.package.mail }}{% include "clip.html" %} {% trans "Commit Message" %}{{ plugin.package.message }}{% include "clip.html" %}
{% trans "This plugin was installed as a package" %}