aboutsummaryrefslogtreecommitdiffstats
path: root/lib/srtgui/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/srtgui/views.py')
-rw-r--r--lib/srtgui/views.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/srtgui/views.py b/lib/srtgui/views.py
index 06d02e77..dfdad602 100644
--- a/lib/srtgui/views.py
+++ b/lib/srtgui/views.py
@@ -103,12 +103,11 @@ def toaster_render(request, page, context):
# variables referred to in templates, which used to determine the
# visibility of UI elements like the "Management" button
def managedcontextprocessor(request):
- ret = {
-# "non_cli_projects": projects.exclude(is_default=True),
-# "DEBUG" : srtmain.settings.DEBUG,
-# "TOASTER_BRANCH": srtmain.settings.TOASTER_BRANCH,
-# "TOASTER_REVISION" : srtmain.settings.TOASTER_REVISION,
- }
+ ret = {}
+ # Add documentation link
+ ret['srt_documentation_link'] = SrtSetting.objects.get(name='SRTOOL_DOCUMENATION_URL').value
+ # Add optional local logo link
+ ret['srt_local_logo'] = SrtSetting.objects.get(name='SRTOOL_LOCAL_LOGO').value.split(',')
return ret
# determine in which mode we are running in, and redirect appropriately