Organizer plugins: Do not show plugins as active if they are inactive on org-level (#5396)

This commit is contained in:
luelista
2025-08-22 09:31:01 +02:00
committed by GitHub
parent fe9a7eaa24
commit 49c0f6b967

View File

@@ -69,12 +69,13 @@
{% if show_meta %} {% if show_meta %}
<span class="text-muted text-sm">{{ plugin.version }}</span> <span class="text-muted text-sm">{{ plugin.version }}</span>
{% endif %} {% endif %}
{% if is_active and level == "organizer" %} {% if is_active or plugin.level == "event" %}
{% if plugin.level == "organizer" %}
<span class="label label-success" data-is-active> <span class="label label-success" data-is-active>
<span class="fa fa-check" aria-hidden="true"></span> <span class="fa fa-check" aria-hidden="true"></span>
{% trans "Active" %} {% trans "Active" %}
</span> </span>
{% elif events_counter == events_total %} {% elif events_total and events_counter == events_total %}
<span class="label label-success" data-is-active> <span class="label label-success" data-is-active>
<span class="fa fa-check" aria-hidden="true"></span> <span class="fa fa-check" aria-hidden="true"></span>
{% trans "Active (all events)" %} {% trans "Active (all events)" %}
@@ -98,6 +99,7 @@
{% endblocktrans %} {% endblocktrans %}
</span> </span>
{% endif %} {% endif %}
{% endif %}
</h4> </h4>
{% include "pretixcontrol/event/fragment_plugin_description.html" with plugin=plugin %} {% include "pretixcontrol/event/fragment_plugin_description.html" with plugin=plugin %}
</div> </div>