mirror of
https://github.com/Kunsi/pretalx-plugin-broadcast-tools
synced 2024-10-31 23:05:53 +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>
|
<dt><code>{EVENT_SLUG}</code></dt>
|
||||||
<dd>Use to embed the event slug.</dd>
|
<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>
|
<dt><code>{TALK_SLUG}</code></dt>
|
||||||
<dd>Use to embed the talk slug.</dd>
|
<dd>Use to embed the talk slug.</dd>
|
||||||
|
|
||||||
|
<dt><code>{TALK_URL}</code></dt>
|
||||||
|
<dd>URL to the talk detail page.</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
|
|
@ -1,6 +1,16 @@
|
||||||
|
from django.conf import settings
|
||||||
|
|
||||||
def placeholders(schedule, talk):
|
def placeholders(schedule, talk):
|
||||||
return {
|
return {
|
||||||
"EVENT_SLUG": str(schedule.event.slug),
|
|
||||||
"TALK_SLUG": talk.frab_slug,
|
|
||||||
"CODE": talk.submission.code,
|
"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