From 1849e14dbffebdee5a3b82270fbb68868d9af1cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20J=C3=A4ckel?= Date: Thu, 25 Oct 2012 21:47:59 +0200 Subject: [PATCH] Insert widget with static welcome text (see frontpage and config tab), ticket #387 --- .../templates/projector/static_info_widget.html | 1 + openslides/projector/views.py | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 openslides/projector/templates/projector/static_info_widget.html diff --git a/openslides/projector/templates/projector/static_info_widget.html b/openslides/projector/templates/projector/static_info_widget.html new file mode 100644 index 000000000..b99a5cbd9 --- /dev/null +++ b/openslides/projector/templates/projector/static_info_widget.html @@ -0,0 +1 @@ +{{ welcometext|safe|linebreaks }} diff --git a/openslides/projector/views.py b/openslides/projector/views.py index 54fa7a866..983b1d4d8 100644 --- a/openslides/projector/views.py +++ b/openslides/projector/views.py @@ -382,6 +382,15 @@ def get_widgets(request): """ widgets = [] + # Static Info widget + widgets.append(Widget( + name='static_info', + display_name=config['frontpage_title'], + template='projector/static_info_widget.html', + context={'welcometext': config['frontpage_welcometext'],}, + permission_required=None, + default_column=1)) + # Projector live view widget widgets.append(Widget( name='live_view',