show inactive plugins in ui

This commit is contained in:
Matthias 2021-11-12 01:54:35 +01:00
parent b706ed2312
commit 55b4ba6207
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
2 changed files with 18 additions and 0 deletions

View File

@ -18,6 +18,12 @@ def plugin_list(*args, **kwargs):
return djangosettings.INTEGRATION_PLUGINS
@register.simple_tag()
def inactive_plugin_list(*args, **kwargs):
""" Return a list of all inactive integration plugins """
return djangosettings.INTEGRATION_PLUGINS_INACTIVE
@register.simple_tag()
def plugin_settings(plugin, *args, **kwargs):
""" Return a list of all settings for a plugin """

View File

@ -64,6 +64,18 @@
<td>{% if plugin.version %}{{ plugin.version }}{% endif %}</td>
</tr>
{% endfor %}
{% inactive_plugin_list as in_pl_list %}
{% if in_pl_list %}
<tr><td colspan="4"></td></tr>
<tr><td colspan="4"><h6>{% trans 'Inactiv plugins' %}</h6></td></tr>
{% for plugin_key, plugin in in_pl_list.items %}
<tr>
<td>{{plugin.name}}<span class="text-muted"> - {{plugin.key}}</span></td>
<td colspan="3"></td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>