Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ots
hypha
Commits
2f0eb454
Commit
2f0eb454
authored
7 years ago
by
Todd Dembrey
Browse files
Options
Downloads
Patches
Plain Diff
Ensure that we can always link to the apply homepage
parent
6933e051
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
opentech/public/utils/context_processors.py
+3
-0
3 additions, 0 deletions
opentech/public/utils/context_processors.py
opentech/templates/includes/apply_button.html
+2
-1
2 additions, 1 deletion
opentech/templates/includes/apply_button.html
with
5 additions
and
1 deletion
opentech/public/utils/context_processors.py
+
3
−
0
View file @
2f0eb454
from
django.conf
import
settings
from
django.conf
import
settings
from
opentech.apply.home.models
import
ApplyHomePage
def
global_vars
(
request
):
def
global_vars
(
request
):
return
{
return
{
'
GOOGLE_TAG_MANAGER_ID
'
:
getattr
(
settings
,
'
GOOGLE_TAG_MANAGER_ID
'
,
None
),
'
GOOGLE_TAG_MANAGER_ID
'
:
getattr
(
settings
,
'
GOOGLE_TAG_MANAGER_ID
'
,
None
),
'
APPLY_SITE
'
:
ApplyHomePage
.
objects
.
first
(),
}
}
This diff is collapsed.
Click to expand it.
opentech/templates/includes/apply_button.html
+
2
−
1
View file @
2f0eb454
<a
href=
"#"
class=
"link link--fixed-apply"
>
Apply
</a>
{% load wagtailcore_tags %}
<a
href=
"{% pageurl APPLY_SITE %}"
class=
"link link--fixed-apply"
>
Apply
</a>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment