diff --git a/MANIFEST.in b/MANIFEST.in index 8efe3ea..81100a3 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,6 +1,6 @@ include Makefile recursive-include img *.png -recursive-include pretalx_lower_thirds *.py -recursive-include pretalx_lower_thirds/locale * -recursive-include pretalx_lower_thirds/static * -recursive-include pretalx_lower_thirds/templates * +recursive-include pretalx_broadcast_tools *.py +recursive-include pretalx_broadcast_tools/locale * +recursive-include pretalx_broadcast_tools/static * +recursive-include pretalx_broadcast_tools/templates * diff --git a/pretalx_broadcast_tools/apps.py b/pretalx_broadcast_tools/apps.py new file mode 100644 index 0000000..d0bd8f8 --- /dev/null +++ b/pretalx_broadcast_tools/apps.py @@ -0,0 +1,21 @@ +from django.apps import AppConfig +from django.utils.translation import gettext_lazy + + +class PluginApp(AppConfig): + name = "pretalx_broadcast_tools" + verbose_name = "Broadcasting Tools" + + class PretalxPluginMeta: + name = gettext_lazy("Broadcasting Tools") + author = "kunsi" + description = gettext_lazy( + "Some tools which can be used for supporting a broadcasting " + "software, for example a 'lower third' page which can be " + "embedded into your broadcasting software" + ) + visible = True + version = "0.1.2" + + def ready(self): + from . import signals # NOQA diff --git a/pretalx_lower_thirds/forms.py b/pretalx_broadcast_tools/forms.py similarity index 90% rename from pretalx_lower_thirds/forms.py rename to pretalx_broadcast_tools/forms.py index 89f8ea1..6e017bf 100644 --- a/pretalx_lower_thirds/forms.py +++ b/pretalx_broadcast_tools/forms.py @@ -3,7 +3,7 @@ from hierarkey.forms import HierarkeyForm from i18nfield.forms import I18nFormField, I18nFormMixin, I18nTextInput -class LowerThirdsSettingsForm(I18nFormMixin, HierarkeyForm): +class BroadcastToolsSettingsForm(I18nFormMixin, HierarkeyForm): lower_thirds_no_talk_info = I18nFormField( help_text=_( "Will be shown as talk title if there's currently no talk running." diff --git a/pretalx_lower_thirds/locale/de_DE/LC_MESSAGES/.gitkeep b/pretalx_broadcast_tools/locale/de_DE/LC_MESSAGES/.gitkeep similarity index 100% rename from pretalx_lower_thirds/locale/de_DE/LC_MESSAGES/.gitkeep rename to pretalx_broadcast_tools/locale/de_DE/LC_MESSAGES/.gitkeep diff --git a/pretalx_lower_thirds/locale/fr_FR/LC_MESSAGES/.gitkeep b/pretalx_broadcast_tools/locale/fr_FR/LC_MESSAGES/.gitkeep similarity index 100% rename from pretalx_lower_thirds/locale/fr_FR/LC_MESSAGES/.gitkeep rename to pretalx_broadcast_tools/locale/fr_FR/LC_MESSAGES/.gitkeep diff --git a/pretalx_lower_thirds/signals.py b/pretalx_broadcast_tools/signals.py similarity index 89% rename from pretalx_lower_thirds/signals.py rename to pretalx_broadcast_tools/signals.py index 59245d4..7eb9234 100644 --- a/pretalx_lower_thirds/signals.py +++ b/pretalx_broadcast_tools/signals.py @@ -25,12 +25,12 @@ def navbar_info(sender, request, **kwargs): { "label": _("lower thirds"), "url": reverse( - "plugins:pretalx_lower_thirds:orga", + "plugins:pretalx_broadcast_tools:orga", kwargs={ "event": request.event.slug, }, ), - "active": url.namespace == "plugins:pretalx_lower_thirds" + "active": url.namespace == "plugins:pretalx_broadcast_tools" and url.url_name == "orga", } ] diff --git a/pretalx_lower_thirds/static/pretalx_lower_thirds/.gitkeep b/pretalx_broadcast_tools/static/pretalx_broadcast_tools/.gitkeep similarity index 100% rename from pretalx_lower_thirds/static/pretalx_lower_thirds/.gitkeep rename to pretalx_broadcast_tools/static/pretalx_broadcast_tools/.gitkeep diff --git a/pretalx_lower_thirds/static/pretalx_lower_thirds/frontend.css b/pretalx_broadcast_tools/static/pretalx_broadcast_tools/frontend.css similarity index 100% rename from pretalx_lower_thirds/static/pretalx_lower_thirds/frontend.css rename to pretalx_broadcast_tools/static/pretalx_broadcast_tools/frontend.css diff --git a/pretalx_lower_thirds/static/pretalx_lower_thirds/update.js b/pretalx_broadcast_tools/static/pretalx_broadcast_tools/update.js similarity index 95% rename from pretalx_lower_thirds/static/pretalx_lower_thirds/update.js rename to pretalx_broadcast_tools/static/pretalx_broadcast_tools/update.js index 1bd8cb6..cf59ea4 100644 --- a/pretalx_lower_thirds/static/pretalx_lower_thirds/update.js +++ b/pretalx_broadcast_tools/static/pretalx_broadcast_tools/update.js @@ -66,12 +66,12 @@ function update_lower_third() { window.setInterval(update_lower_third, 1000); function update_schedule() { - $.getJSON('event.json', function(data) { + $.getJSON('../event.json', function(data) { event_info = data; $('#box').css('background-color', data['color']); }); - $.getJSON('schedule.json', function(data) { + $.getJSON('../schedule.json', function(data) { console.info('schedule updated with ' + data['talks'].length + ' talks in ' + data['rooms'].length + ' rooms'); schedule = data; diff --git a/pretalx_lower_thirds/templates/pretalx_lower_thirds/.gitkeep b/pretalx_broadcast_tools/templates/pretalx_broadcast_tools/.gitkeep similarity index 100% rename from pretalx_lower_thirds/templates/pretalx_lower_thirds/.gitkeep rename to pretalx_broadcast_tools/templates/pretalx_broadcast_tools/.gitkeep diff --git a/pretalx_lower_thirds/templates/pretalx_lower_thirds/lower_thirds.html b/pretalx_broadcast_tools/templates/pretalx_broadcast_tools/lower_thirds.html similarity index 77% rename from pretalx_lower_thirds/templates/pretalx_lower_thirds/lower_thirds.html rename to pretalx_broadcast_tools/templates/pretalx_broadcast_tools/lower_thirds.html index 5b2fdc9..237f2ca 100644 --- a/pretalx_lower_thirds/templates/pretalx_lower_thirds/lower_thirds.html +++ b/pretalx_broadcast_tools/templates/pretalx_broadcast_tools/lower_thirds.html @@ -8,8 +8,8 @@ {% compress js %} {% endcompress %} - - + +