mirror of
https://github.com/Kunsi/pretalx-plugin-broadcast-tools
synced 2024-11-23 23:21:20 +00:00
add TALK_URL and FEEDBACK_URL to the list of placeholders
This commit is contained in:
parent
97784373c0
commit
11afb88602
2 changed files with 18 additions and 2 deletions
|
@ -37,8 +37,14 @@
|
|||
<dt><code>{EVENT_SLUG}</code></dt>
|
||||
<dd>Use to embed the event slug.</dd>
|
||||
|
||||
<dt><code>{FEEDBACK_URL}</code></dt>
|
||||
<dd>URL to the talk feedback page.</dd>
|
||||
|
||||
<dt><code>{TALK_SLUG}</code></dt>
|
||||
<dd>Use to embed the talk slug.</dd>
|
||||
|
||||
<dt><code>{TALK_URL}</code></dt>
|
||||
<dd>URL to the talk detail page.</dd>
|
||||
</dl>
|
||||
|
||||
<fieldset>
|
||||
|
|
|
@ -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,
|
||||
),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue