mirror of
https://github.com/Kunsi/pretalx-plugin-broadcast-tools
synced 2024-11-21 19:51:03 +00:00
more style fixes
This commit is contained in:
parent
6d58ba7feb
commit
5f47157b86
3 changed files with 8 additions and 12 deletions
|
@ -6,8 +6,7 @@ from i18nfield.forms import I18nFormField, I18nFormMixin, I18nTextInput
|
|||
class LowerThirdsSettingsForm(I18nFormMixin, HierarkeyForm):
|
||||
lower_thirds_no_talk_info = I18nFormField(
|
||||
help_text=_(
|
||||
"Will be shown as talk title if there's currently no talk "
|
||||
"running."
|
||||
"Will be shown as talk title if there's currently no talk running."
|
||||
),
|
||||
label=_('"no talk running" information'),
|
||||
widget=I18nTextInput,
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
from django.dispatch import receiver
|
||||
from django.urls import resolve, reverse
|
||||
from django.utils.translation import gettext_noop, ugettext_lazy as _
|
||||
from django.utils.translation import gettext_noop
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from i18nfield.strings import LazyI18nString
|
||||
from pretalx.common.models.settings import hierarkey
|
||||
from pretalx.orga.signals import nav_event_settings
|
||||
|
|
|
@ -5,9 +5,7 @@ from django.http import JsonResponse
|
|||
from django.views.generic import FormView
|
||||
from django.views.generic.base import TemplateView
|
||||
from pretalx.agenda.views.schedule import ScheduleMixin
|
||||
from pretalx.common.mixins.views import (
|
||||
EventPermissionRequired, PermissionRequired,
|
||||
)
|
||||
from pretalx.common.mixins.views import EventPermissionRequired, PermissionRequired
|
||||
from pretalx.schedule.exporters import ScheduleData
|
||||
|
||||
from .forms import LowerThirdsSettingsForm
|
||||
|
@ -57,8 +55,7 @@ class ScheduleView(EventPermissionRequired, ScheduleMixin, TemplateView):
|
|||
"conference": {
|
||||
"slug": schedule.event.slug,
|
||||
"name": str(schedule.event.name),
|
||||
"no_talk": str(
|
||||
schedule.event.settings.lower_thirds_no_talk_info),
|
||||
"no_talk": str(schedule.event.settings.lower_thirds_no_talk_info),
|
||||
},
|
||||
"rooms": sorted(
|
||||
{
|
||||
|
@ -71,10 +68,9 @@ class ScheduleView(EventPermissionRequired, ScheduleMixin, TemplateView):
|
|||
{
|
||||
"id": talk.submission.id,
|
||||
"start": talk.start.astimezone(tz).isoformat(),
|
||||
"end": (
|
||||
talk.start +
|
||||
dt.timedelta(minutes=talk.duration)
|
||||
).astimezone(tz).isoformat(),
|
||||
"end": (talk.start + dt.timedelta(minutes=talk.duration))
|
||||
.astimezone(tz)
|
||||
.isoformat(),
|
||||
"slug": talk.frab_slug,
|
||||
"title": talk.submission.title,
|
||||
"persons": sorted(
|
||||
|
|
Loading…
Reference in a new issue