Added a personal dashboard

This commit is contained in:
Raphael Michel
2016-02-23 09:30:50 +01:00
parent afd8b944e7
commit 1014e3f0f4
7 changed files with 107 additions and 19 deletions

View File

@@ -1,3 +1,5 @@
from django.dispatch import Signal
from pretix.base.signals import EventPluginSignal
"""
@@ -34,3 +36,16 @@ should return a list of dictionaries, where each dictionary can have the keys:
event_dashboard_widgets = EventPluginSignal(
providing_args=[]
)
"""
This signal is sent out to include widgets to the personal user dashboard. Receivers
should return a list of dictionaries, where each dictionary can have the keys:
* content (str, containing HTML)
* minimal width (int, widget width in 1/12ths of the page, default ist 3, can be
ignored on small displays)
* priority (int, used for ordering, higher comes first, default is 1)
* link (str, optional, if the full widget should be a link)
"""
user_dashboard_widgets = Signal(
providing_args=['user']
)