diff --git a/opentech/public/utils/context_processors.py b/opentech/public/utils/context_processors.py index 25bc4c7cdda11f6dfedc5f39f4f2f9f40745ba29..330053296b778a10ef308e74095f8bf0c2efe668 100644 --- a/opentech/public/utils/context_processors.py +++ b/opentech/public/utils/context_processors.py @@ -1,7 +1,10 @@ from django.conf import settings +from opentech.apply.home.models import ApplyHomePage + def global_vars(request): return { 'GOOGLE_TAG_MANAGER_ID': getattr(settings, 'GOOGLE_TAG_MANAGER_ID', None), + 'APPLY_SITE': ApplyHomePage.objects.first(), } diff --git a/opentech/templates/includes/apply_button.html b/opentech/templates/includes/apply_button.html index 477d0ed9074b8da8a2115754fa573c5c193c4ade..53c5218e43f4e15d8f2b5b2387eb1ac1b24ef27c 100644 --- a/opentech/templates/includes/apply_button.html +++ b/opentech/templates/includes/apply_button.html @@ -1 +1,2 @@ -<a href="#" class="link link--fixed-apply">Apply</a> +{% load wagtailcore_tags %} +<a href="{% pageurl APPLY_SITE %}" class="link link--fixed-apply">Apply</a>