diff --git a/cookbook/templates/system.html b/cookbook/templates/system.html index dd2195777..60bb886d3 100644 --- a/cookbook/templates/system.html +++ b/cookbook/templates/system.html @@ -11,7 +11,7 @@ {% block content %}

{% trans 'System' %}

- +


@@ -91,7 +91,12 @@ {% endif %}

-

Debug

+

Plugins

+ {% for p in plugins %} + {{ p.name }} - {{ p.version }}
+ {% endfor %} + +

Debug


diff --git a/cookbook/views/views.py b/cookbook/views/views.py index 1cd4f914d..834ffb863 100644 --- a/cookbook/views/views.py +++ b/cookbook/views/views.py @@ -22,6 +22,7 @@ from cookbook.helper.permission_helper import group_required, has_group_permissi from cookbook.models import (Comment, CookLog, InviteLink, SearchFields, SearchPreference, ShareLink, Space, ViewLog, UserSpace) from cookbook.tables import (CookLogTable, ViewLogTable) +from recipes.settings import PLUGINS from recipes.version import BUILD_REF, VERSION_NUMBER @@ -322,6 +323,7 @@ def system(request): 'postgres': postgres, 'version': VERSION_NUMBER, 'ref': BUILD_REF, + 'plugins': PLUGINS, 'secret_key': secret_key }) diff --git a/recipes/settings.py b/recipes/settings.py index fbe1afdf1..d2c452645 100644 --- a/recipes/settings.py +++ b/recipes/settings.py @@ -148,6 +148,7 @@ try: plugin_config = { 'name': plugin_class.verbose_name if hasattr(plugin_class, 'verbose_name') else plugin_class.name, + 'version': plugin_class.VERSION if hasattr(plugin_class, 'VERSION') else 'unknown', 'module': f'recipes.plugins.{d}', 'base_path': os.path.join(BASE_DIR, 'recipes', 'plugins', d), 'base_url': plugin_class.base_url,