mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-14 06:55:08 +02:00
Use a demo site banner to avoid confusion
This commit is contained in:
parent
4722ec43e8
commit
2cc799bb65
3 changed files with 29 additions and 1 deletions
|
@ -21,3 +21,13 @@ def canonical_path(request):
|
|||
template itself, so we do it here and pass the information on.
|
||||
"""
|
||||
return {"CANONICAL_PATH": request.build_absolute_uri(request.path)}
|
||||
|
||||
|
||||
def is_demo_site(request):
|
||||
"""Add a boolean if this is a demo site.
|
||||
|
||||
To be able to render or not our "demo site" banner, we need a context
|
||||
variable for the template that indicates if this banner should or
|
||||
should not appear.
|
||||
"""
|
||||
return {"IS_DEMO_SITE": settings.IS_DEMO_SITE}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue