added help_message
This commit is contained in:
parent
67384d0644
commit
6798050ded
@ -79,10 +79,12 @@ config = Config()
|
|||||||
@receiver(default_config_value, dispatch_uid="config_default_config")
|
@receiver(default_config_value, dispatch_uid="config_default_config")
|
||||||
def default_config(sender, key, **kwargs):
|
def default_config(sender, key, **kwargs):
|
||||||
return {
|
return {
|
||||||
'event_name': 'OpenSlides',
|
'event_name': _('OpenSlides'),
|
||||||
'event_description': 'Presentation and voting system',
|
'event_description': _('Presentation and voting system'),
|
||||||
'frontpage_title': 'Welcome',
|
'frontpage_title': _('Welcome'),
|
||||||
'frontpage_welcometext': 'Welcome to OpenSlides!',
|
'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)
|
}.get(key)
|
||||||
|
|
||||||
|
|
||||||
|
@ -278,6 +278,8 @@ class FrontPage(TemplateView):
|
|||||||
continue
|
continue
|
||||||
if tab.permission:
|
if tab.permission:
|
||||||
apps.append(tab)
|
apps.append(tab)
|
||||||
|
if config['show_help_text']:
|
||||||
|
messages.info(self.request, config['help_text'])
|
||||||
context.update({
|
context.update({
|
||||||
'apps': apps,
|
'apps': apps,
|
||||||
'title': config['frontpage_title'],
|
'title': config['frontpage_title'],
|
||||||
|
Loading…
Reference in New Issue
Block a user