diff --git a/InvenTree/plugins/integration/integration.py b/InvenTree/plugins/integration/integration.py index 77131130ce..3fbdf2b015 100644 --- a/InvenTree/plugins/integration/integration.py +++ b/InvenTree/plugins/integration/integration.py @@ -165,6 +165,7 @@ class IntegrationPlugin(MixinBase, plugin.InvenTreePlugin): def __init__(self): self.add_mixin('base') self.commit = self.get_plugin_commit() + self.sign_state = 0 def mixin(self, key): return key in self._mixins diff --git a/InvenTree/templates/InvenTree/settings/plugin_settings.html b/InvenTree/templates/InvenTree/settings/plugin_settings.html index 5426a78644..633b41a000 100644 --- a/InvenTree/templates/InvenTree/settings/plugin_settings.html +++ b/InvenTree/templates/InvenTree/settings/plugin_settings.html @@ -37,12 +37,17 @@ {% trans "Commit Message" %}{{ plugin.commit.message }}{% include "clip.html" %} + {% if plugin.sign_state == 0 %} + {% define 'text-success' as sign_color %} + {% else %} + {% define 'text-danger' as sign_color %} + {% endif %} - + {% trans "Commit verified" %}{{ plugin.commit.verified }} - + {% trans "Commit Sign Key" %}{{ plugin.commit.key }}{% include "clip.html" %}