diff --git a/pretalx_broadcast_tools/templates/pretalx_broadcast_tools/orga.html b/pretalx_broadcast_tools/templates/pretalx_broadcast_tools/orga.html index 15077ff..181ddb1 100644 --- a/pretalx_broadcast_tools/templates/pretalx_broadcast_tools/orga.html +++ b/pretalx_broadcast_tools/templates/pretalx_broadcast_tools/orga.html @@ -37,8 +37,14 @@
{EVENT_SLUG}
Use to embed the event slug.
+
{FEEDBACK_URL}
+
URL to the talk feedback page.
+
{TALK_SLUG}
Use to embed the talk slug.
+ +
{TALK_URL}
+
URL to the talk detail page.
diff --git a/pretalx_broadcast_tools/utils/placeholders.py b/pretalx_broadcast_tools/utils/placeholders.py index 0009ee7..47c9dcc 100644 --- a/pretalx_broadcast_tools/utils/placeholders.py +++ b/pretalx_broadcast_tools/utils/placeholders.py @@ -1,6 +1,16 @@ +from django.conf import settings + def placeholders(schedule, talk): return { - "EVENT_SLUG": str(schedule.event.slug), - "TALK_SLUG": talk.frab_slug, "CODE": talk.submission.code, + "EVENT_SLUG": str(schedule.event.slug), + "FEEDBACK_URL": "{}{}".format( + schedule.event.custom_domain or settings.SITE_URL, + talk.submission.urls.feedback, + ), + "TALK_SLUG": talk.frab_slug, + "TALK_URL": "{}{}".format( + schedule.event.custom_domain or settings.SITE_URL, + talk.submission.urls.public, + ), }