Insert widget with static welcome text (see frontpage and config tab), ticket #387

This commit is contained in:
Norman Jäckel 2012-10-25 21:47:59 +02:00
parent 4052e137a2
commit 1849e14dbf
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1 @@
{{ welcometext|safe|linebreaks }}

View File

@ -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',