added help_message

This commit is contained in:
Oskar Hahn 2012-04-18 15:04:16 +02:00
parent 67384d0644
commit 6798050ded
2 changed files with 8 additions and 4 deletions

View File

@ -79,10 +79,12 @@ config = Config()
@receiver(default_config_value, dispatch_uid="config_default_config")
def default_config(sender, key, **kwargs):
return {
'event_name': 'OpenSlides',
'event_description': 'Presentation and voting system',
'frontpage_title': 'Welcome',
'frontpage_welcometext': 'Welcome to OpenSlides!',
'event_name': _('OpenSlides'),
'event_description': _('Presentation and voting system'),
'frontpage_title': _('Welcome'),
'frontpage_welcometext': _('Welcome to OpenSlides!'),
'show_help_text': True,
'help_text': _('If you need any help wieth OpenSlides, you can find commercial support on our <a href="http://openslides.org/en/support">Webpage</a>.'),
}.get(key)

View File

@ -278,6 +278,8 @@ class FrontPage(TemplateView):
continue
if tab.permission:
apps.append(tab)
if config['show_help_text']:
messages.info(self.request, config['help_text'])
context.update({
'apps': apps,
'title': config['frontpage_title'],