diff --git a/doc/admin/config.rst b/doc/admin/config.rst index 04f2772be..b26ed7ae3 100644 --- a/doc/admin/config.rst +++ b/doc/admin/config.rst @@ -65,6 +65,9 @@ Example:: A comma-separated list of plugins that are not available even though they are installed. Defaults to an empty string. +``plugins_show_meta`` + Whether to show authors and versions of plugins, defaults to ``on``. + ``auth_backends`` A comma-separated list of available auth backends. Defaults to ``pretix.base.auth.NativeAuthBackend``. diff --git a/doc/development/api/plugins.rst b/doc/development/api/plugins.rst index a6a5a5cc9..4a268cdd3 100644 --- a/doc/development/api/plugins.rst +++ b/doc/development/api/plugins.rst @@ -45,13 +45,17 @@ Attribute Type Description name string The human-readable name of your plugin author string Your name version string A human-readable version code of your plugin -description string A more verbose description of what your plugin does. +description string A more verbose description of what your plugin does. May contain HTML. category string Category of a plugin. Either one of ``"FEATURE"``, ``"PAYMENT"``, ``"INTEGRATION"``, ``"CUSTOMIZATION"``, ``"FORMAT"``, or ``"API"``, or any other string. +picture string (optional) Path to a picture resolvable through the static file system. +featured boolean (optional) ``False`` by default, can promote a plugin if it's something many users will want, use carefully. visible boolean (optional) ``True`` by default, can hide a plugin so it cannot be normally activated. restricted boolean (optional) ``False`` by default, restricts a plugin such that it can only be enabled for an event by system administrators / superusers. +experimental boolean (optional) ``False`` by default, marks a plugin as an experimental feature in the plugins list. +picture string (optional) Path to a picture resolvable through the static file system. compatibility string Specifier for compatible pretix versions. ================== ==================== =========================================================== @@ -74,8 +78,10 @@ A working example would be: name = _("PayPal") author = _("the pretix team") version = '1.0.0' - category = 'PAYMENT + category = 'PAYMENT' + picture = 'pretix_paypal/paypal_logo.svg' visible = True + featured = False restricted = False description = _("This plugin allows you to receive payments via PayPal") compatibility = "pretix>=2.7.0" diff --git a/src/pretix/control/templates/pretixcontrol/event/fragment_plugin_description.html b/src/pretix/control/templates/pretixcontrol/event/fragment_plugin_description.html new file mode 100644 index 000000000..588e87276 --- /dev/null +++ b/src/pretix/control/templates/pretixcontrol/event/fragment_plugin_description.html @@ -0,0 +1,36 @@ +{% load i18n %} +{% if show_meta %} + {% if plugin.author %} +
+ {% endif %} +{% endif %} +{{ plugin.description|safe }}
+{% if plugin.restricted and plugin.module not in request.event.settings.allowed_restricted_plugins %} ++ + {% trans "This plugin needs to be enabled by a system administrator for your account." %} +
+{% endif %} +{% if plugin.app.compatibility_errors %} ++ {% blocktrans trimmed %} + On this page, you can choose plugins you want to enable for your event. Plugins might bring additional + software functionality, connect your event to third-party services, or apply other forms of customizations. + {% endblocktrans %} +