mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-16 06:24:12 +02:00
Merge and use IS_PRODUCTION context processor everywhere
This commit is contained in:
parent
e29fbd0c2f
commit
11e7abea52
2 changed files with 1 additions and 3 deletions
|
@ -13,7 +13,7 @@
|
||||||
<h1>Manage your domains</h2>
|
<h1>Manage your domains</h2>
|
||||||
|
|
||||||
<p class="margin-top-4">
|
<p class="margin-top-4">
|
||||||
{% if is_production %}
|
{% if IS_PRODUCTION %}
|
||||||
<a href="javascript:void(0)"
|
<a href="javascript:void(0)"
|
||||||
class="usa-button usa-tooltip disabled-link"
|
class="usa-button usa-tooltip disabled-link"
|
||||||
data-position="right"
|
data-position="right"
|
||||||
|
|
|
@ -2,7 +2,6 @@ from django.db.models import F
|
||||||
from django.shortcuts import render
|
from django.shortcuts import render
|
||||||
|
|
||||||
from registrar.models import DomainApplication
|
from registrar.models import DomainApplication
|
||||||
from django.conf import settings
|
|
||||||
|
|
||||||
|
|
||||||
def index(request):
|
def index(request):
|
||||||
|
@ -23,5 +22,4 @@ def index(request):
|
||||||
state=F("domain__state"),
|
state=F("domain__state"),
|
||||||
)
|
)
|
||||||
context["domains"] = domains
|
context["domains"] = domains
|
||||||
context["is_production"] = settings.IS_PRODUCTION
|
|
||||||
return render(request, "home.html", context)
|
return render(request, "home.html", context)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue