diff --git a/doc/development/api/general.rst b/doc/development/api/general.rst index 8fffe2771..4a9b9d1d5 100644 --- a/doc/development/api/general.rst +++ b/doc/development/api/general.rst @@ -47,7 +47,7 @@ Backend ------- .. automodule:: pretix.control.signals - :members: nav_event, html_head, quota_detail_html, nav_topbar + :members: nav_event, html_head, quota_detail_html, nav_topbar, organizer_edit_tabs .. automodule:: pretix.base.signals diff --git a/src/pretix/control/signals.py b/src/pretix/control/signals.py index 7d6edb1b5..d9bf9e031 100644 --- a/src/pretix/control/signals.py +++ b/src/pretix/control/signals.py @@ -122,3 +122,14 @@ quota as argument in the ``quota`` keyword argument. As with all plugin signals, the ``sender`` keyword argument will contain the event. """ + +organizer_edit_tabs = Signal( + providing_args=['organizer'] +) +""" +This signal is sent out to include tabs on the detail page of an organizer. Receivers +should return a tuple with the first item being the tab title and the second item +being the content as HTML. The receivers get the ``organizer`` as a keyword argument. + +This is a regular django signal (no pretix event signal). +""" diff --git a/src/pretix/control/templates/pretixcontrol/organizers/detail.html b/src/pretix/control/templates/pretixcontrol/organizers/detail.html index 9b8a7a524..d4c9261d7 100644 --- a/src/pretix/control/templates/pretixcontrol/organizers/detail.html +++ b/src/pretix/control/templates/pretixcontrol/organizers/detail.html @@ -6,15 +6,32 @@