From 3ea4cdc3b34823d5dbdba20194b70e84320be290 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Sat, 8 Feb 2020 13:14:19 +0100 Subject: [PATCH] Small categorization adjustments --- doc/development/api/plugins.rst | 2 +- src/pretix/control/templates/pretixcontrol/event/plugins.html | 2 +- src/pretix/control/views/event.py | 4 ++-- src/pretix/plugins/reports/__init__.py | 2 +- src/pretix/plugins/ticketoutputpdf/__init__.py | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/development/api/plugins.rst b/doc/development/api/plugins.rst index e87eb01b4..fc2769604 100644 --- a/doc/development/api/plugins.rst +++ b/doc/development/api/plugins.rst @@ -47,7 +47,7 @@ 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. category string Category of a plugin. Either one of ``"FEATURE"``, ``"PAYMENT"``, - ``"INTEGRATION"``, ``"CUSTOMIZATION"``, ``"FORMATS"``, or ``"API"``, + ``"INTEGRATION"``, ``"CUSTOMIZATION"``, ``"FORMAT"``, or ``"API"``, or any other string. 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 diff --git a/src/pretix/control/templates/pretixcontrol/event/plugins.html b/src/pretix/control/templates/pretixcontrol/event/plugins.html index 2a4d317b5..428169da4 100644 --- a/src/pretix/control/templates/pretixcontrol/event/plugins.html +++ b/src/pretix/control/templates/pretixcontrol/event/plugins.html @@ -58,7 +58,7 @@ {% endif %} - + {% if plugin.app.compatibility_errors %} diff --git a/src/pretix/control/views/event.py b/src/pretix/control/views/event.py index ffe5da72c..d9f883fc3 100644 --- a/src/pretix/control/views/event.py +++ b/src/pretix/control/views/event.py @@ -221,7 +221,7 @@ class EventPlugins(EventSettingsViewMixin, EventPermissionRequiredMixin, Templat 'PAYMENT', 'INTEGRATION', 'CUSTOMIZATION', - 'FORMATS', + 'FORMAT', 'API', ] labels = { @@ -229,7 +229,7 @@ class EventPlugins(EventSettingsViewMixin, EventPermissionRequiredMixin, Templat 'PAYMENT': _('Payment providers'), 'INTEGRATION': _('Integrations'), 'CUSTOMIZATION': _('Customizations'), - 'FORMATS': _('Output and export formats'), + 'FORMAT': _('Output and export formats'), 'API': _('API features'), } context['plugins'] = sorted([ diff --git a/src/pretix/plugins/reports/__init__.py b/src/pretix/plugins/reports/__init__.py index 4ff1f0a98..55a32dc93 100644 --- a/src/pretix/plugins/reports/__init__.py +++ b/src/pretix/plugins/reports/__init__.py @@ -13,7 +13,7 @@ class ReportsApp(AppConfig): name = _("Report exporter") author = _("the pretix team") version = version - category = 'FORMATS' + category = 'FORMAT' description = _("This plugin allows you to generate printable reports about your sales.") def ready(self): diff --git a/src/pretix/plugins/ticketoutputpdf/__init__.py b/src/pretix/plugins/ticketoutputpdf/__init__.py index a5e659f2f..e3ed21227 100644 --- a/src/pretix/plugins/ticketoutputpdf/__init__.py +++ b/src/pretix/plugins/ticketoutputpdf/__init__.py @@ -13,7 +13,7 @@ class TicketOutputPdfApp(AppConfig): name = _("PDF ticket output") author = _("the pretix team") version = version - category = 'FORMATS' + category = 'FORMAT' description = _("This plugin allows you to print out tickets as PDF files") def ready(self):