Add request and subevent parameters to front page widgets

This commit is contained in:
Raphael Michel
2019-12-11 17:05:05 +01:00
parent 3cb7482bae
commit cd55146867
2 changed files with 4 additions and 4 deletions

View File

@@ -213,7 +213,7 @@ As with all plugin signals, the ``sender`` keyword argument will contain the eve
"""
front_page_top = EventPluginSignal(
providing_args=[]
providing_args=["request", "subevent"]
)
"""
This signal is sent out to display additional information on the frontpage above the list
@@ -236,7 +236,7 @@ receivers are expected to return HTML.
"""
front_page_bottom = EventPluginSignal(
providing_args=[]
providing_args=["request", "subevent"]
)
"""
This signal is sent out to display additional information on the frontpage below the list

View File

@@ -206,7 +206,7 @@
</div>
{% eventsignal event "pretix.presale.signals.front_page_top" %}
{% eventsignal event "pretix.presale.signals.front_page_top" request=request subevent=subevent %}
{% endif %}
{% if ev.presale_is_running or event.settings.show_items_outside_presale_period %}
@@ -269,7 +269,7 @@
</section>
{% endif %}
{% if not cart_namespace %}
{% eventsignal event "pretix.presale.signals.front_page_bottom" %}
{% eventsignal event "pretix.presale.signals.front_page_bottom" subevent=subevent request=request %}
<section class="front-page">
<h3>{% trans "If you already ordered a ticket" %}</h3>
<div>