diff --git a/doc/development/api/general.rst b/doc/development/api/general.rst index 5c75a4185..109476ea5 100644 --- a/doc/development/api/general.rst +++ b/doc/development/api/general.rst @@ -72,7 +72,7 @@ Dashboards """""""""" .. automodule:: pretix.control.signals - :members: event_dashboard_widgets, user_dashboard_widgets + :members: event_dashboard_widgets, user_dashboard_widgets, event_dashboard_top Ticket designs """""""""""""" diff --git a/src/pretix/control/signals.py b/src/pretix/control/signals.py index aa2f90065..1c16d4ec8 100644 --- a/src/pretix/control/signals.py +++ b/src/pretix/control/signals.py @@ -92,6 +92,17 @@ This is no ``EventPluginSignal``, so you do not get the event in the ``sender`` and you may get the signal regardless of whether your plugin is active. """ +event_dashboard_top = EventPluginSignal( + providing_args=['request'] +) +""" +This signal is sent out to include custom HTML in the top part of the the event dashboard. +Receivers should return HTML. + +As with all plugin signals, the ``sender`` keyword argument will contain the event. +An additional keyword argument ``subevent`` *can* contain a sub-event. +""" + event_dashboard_widgets = EventPluginSignal( providing_args=[] ) diff --git a/src/pretix/control/templates/pretixcontrol/event/index.html b/src/pretix/control/templates/pretixcontrol/event/index.html index 737c5103b..45ef51318 100644 --- a/src/pretix/control/templates/pretixcontrol/event/index.html +++ b/src/pretix/control/templates/pretixcontrol/event/index.html @@ -3,6 +3,7 @@ {% load eventurl %} {% load bootstrap3 %} {% load static %} +{% load eventsignal %} {% block title %}{{ request.event.name }}{% endblock %} {% block content %}