Add global banner message

This commit is contained in:
Raphael Michel
2018-03-07 15:28:03 +01:00
parent d058721243
commit ae861f080b
7 changed files with 52 additions and 5 deletions

View File

@@ -91,8 +91,9 @@ def contextprocessor(request):
ctx['warning_update_available'] = False
ctx['warning_update_check_active'] = False
gs = GlobalSettingsObject()
ctx['global_settings'] = gs.settings
if request.user.is_superuser:
gs = GlobalSettingsObject()
if gs.settings.update_check_result_warning:
ctx['warning_update_available'] = True
if not gs.settings.update_check_ack and 'runserver' not in sys.argv: