From 49c0f6b9673a90f434ef46f5ccc0392d55a7f3b2 Mon Sep 17 00:00:00 2001 From: luelista Date: Fri, 22 Aug 2025 09:31:01 +0200 Subject: [PATCH] Organizer plugins: Do not show plugins as active if they are inactive on org-level (#5396) --- .../pretixcontrol/organizers/plugins.html | 58 ++++++++++--------- 1 file changed, 30 insertions(+), 28 deletions(-) diff --git a/src/pretix/control/templates/pretixcontrol/organizers/plugins.html b/src/pretix/control/templates/pretixcontrol/organizers/plugins.html index 964132f3a..de4ec952d 100644 --- a/src/pretix/control/templates/pretixcontrol/organizers/plugins.html +++ b/src/pretix/control/templates/pretixcontrol/organizers/plugins.html @@ -69,34 +69,36 @@ {% if show_meta %} {{ plugin.version }} {% endif %} - {% if is_active and level == "organizer" %} - - - {% trans "Active" %} - - {% elif events_counter == events_total %} - - - {% trans "Active (all events)" %} - - {% elif events_counter %} - - - {% blocktrans trimmed count count=events_counter %} - Active ({{ count }} event) - {% plural %} - Active ({{ count }} events) - {% endblocktrans %} - - {% elif level == "event_organizer" %} - - - {% blocktrans trimmed count count=0 %} - Active ({{ count }} event) - {% plural %} - Active ({{ count }} events) - {% endblocktrans %} - + {% if is_active or plugin.level == "event" %} + {% if plugin.level == "organizer" %} + + + {% trans "Active" %} + + {% elif events_total and events_counter == events_total %} + + + {% trans "Active (all events)" %} + + {% elif events_counter %} + + + {% blocktrans trimmed count count=events_counter %} + Active ({{ count }} event) + {% plural %} + Active ({{ count }} events) + {% endblocktrans %} + + {% elif level == "event_organizer" %} + + + {% blocktrans trimmed count count=0 %} + Active ({{ count }} event) + {% plural %} + Active ({{ count }} events) + {% endblocktrans %} + + {% endif %} {% endif %} {% include "pretixcontrol/event/fragment_plugin_description.html" with plugin=plugin %}