mirror of
https://github.com/Kunsi/pretalx-plugin-broadcast-tools
synced 2024-11-24 15:01:03 +00:00
Merge pull request #5 from rixx/fallback-info
Don't display "None" when no infoline is configured
This commit is contained in:
commit
7107150736
1 changed files with 2 additions and 3 deletions
|
@ -50,6 +50,7 @@ class ScheduleView(EventPermissionRequired, ScheduleMixin, TemplateView):
|
||||||
schedule=self.schedule,
|
schedule=self.schedule,
|
||||||
)
|
)
|
||||||
tz = pytz.timezone(schedule.event.timezone)
|
tz = pytz.timezone(schedule.event.timezone)
|
||||||
|
infoline = str(schedule.event.settings.infoline or "")
|
||||||
return JsonResponse(
|
return JsonResponse(
|
||||||
{
|
{
|
||||||
"conference": {
|
"conference": {
|
||||||
|
@ -88,9 +89,7 @@ class ScheduleView(EventPermissionRequired, ScheduleMixin, TemplateView):
|
||||||
if talk.submission.track
|
if talk.submission.track
|
||||||
else None,
|
else None,
|
||||||
"room": str(room["name"]),
|
"room": str(room["name"]),
|
||||||
"infoline": str(
|
"infoline": infoline.format(
|
||||||
schedule.event.settings.lower_thirds_info_string
|
|
||||||
).format(
|
|
||||||
EVENT_SLUG=str(schedule.event.slug),
|
EVENT_SLUG=str(schedule.event.slug),
|
||||||
TALK_SLUG=talk.frab_slug,
|
TALK_SLUG=talk.frab_slug,
|
||||||
CODE=talk.submission.code,
|
CODE=talk.submission.code,
|
||||||
|
|
Loading…
Reference in a new issue