mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Add request and subevent parameters to front page widgets
This commit is contained in:
@@ -213,7 +213,7 @@ As with all plugin signals, the ``sender`` keyword argument will contain the eve
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
front_page_top = EventPluginSignal(
|
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
|
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(
|
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
|
This signal is sent out to display additional information on the frontpage below the list
|
||||||
|
|||||||
@@ -206,7 +206,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% eventsignal event "pretix.presale.signals.front_page_top" %}
|
{% eventsignal event "pretix.presale.signals.front_page_top" request=request subevent=subevent %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if ev.presale_is_running or event.settings.show_items_outside_presale_period %}
|
{% if ev.presale_is_running or event.settings.show_items_outside_presale_period %}
|
||||||
@@ -269,7 +269,7 @@
|
|||||||
</section>
|
</section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if not cart_namespace %}
|
{% 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">
|
<section class="front-page">
|
||||||
<h3>{% trans "If you already ordered a ticket" %}</h3>
|
<h3>{% trans "If you already ordered a ticket" %}</h3>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user