diff --git a/tock/tock/context_processors.py b/tock/tock/context_processors.py index 91de267a6..b0e45b882 100644 --- a/tock/tock/context_processors.py +++ b/tock/tock/context_processors.py @@ -18,3 +18,8 @@ def version_url(request): response['x_tock_release_name'] = name[:7] return response + +def tock_request_form_url(request): + return { + 'x_tock_change_request_form_url': settings.TOCK_CHANGE_REQUEST_FORM, + } diff --git a/tock/tock/settings/base.py b/tock/tock/settings/base.py index d53381ef3..057f12e21 100644 --- a/tock/tock/settings/base.py +++ b/tock/tock/settings/base.py @@ -62,6 +62,7 @@ 'django.contrib.messages.context_processors.messages', 'django.template.context_processors.request', 'tock.context_processors.version_url', + 'tock.context_processors.tock_request_form_url', ], }, }, @@ -120,3 +121,5 @@ UAA_CLIENT_SECRET = env.get_credential('UAA_CLIENT_SECRET', None) UAA_AUTH_URL = 'https://login.fr.cloud.gov/oauth/authorize' UAA_TOKEN_URL = 'https://uaa.fr.cloud.gov/oauth/token' + +TOCK_CHANGE_REQUEST_FORM = 'https://docs.google.com/a/gsa.gov/forms/d/1EpVTxXgRNgYfoSA2J8Oi-csjhFKqFm5DT542vIlahpU/viewform?edit_requested=true' diff --git a/tock/tock/templates/_navigation.html b/tock/tock/templates/_navigation.html index 9dbe7d856..20123d61f 100644 --- a/tock/tock/templates/_navigation.html +++ b/tock/tock/templates/_navigation.html @@ -30,6 +30,11 @@ Log out +
  • + + Tock Change Request Form + +
  • {% if request.user.is_superuser %}