File tree Expand file tree Collapse file tree 4 files changed +6
-3
lines changed
Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 66def context_settings (request : HttpRequest ) -> Context :
77 return {
88 "PROJECT_NAME" : settings .PROJECT_NAME ,
9+ "DEPLOYMENT_ENV" : settings .DEPLOYMENT_ENV ,
910 }
Original file line number Diff line number Diff line change 2929 {% block head_javascript %}
3030 {% endblock head_javascript %}
3131 </ head >
32- < body class ="flex h-screen overflow-hidden bg-slate-50 ">
32+ < body class ="flex h-screen overflow-hidden {% if DEPLOYMENT_ENV == 'production' %} bg-slate-50{% else %}bg-red-100{% endif %} ">
3333 {% block body %}
3434 < div class ="relative flex flex-1 flex-col max-w-full overflow-y-auto overflow-x-hidden ">
3535 {% include 'core/partials/navigation.html' %}
Original file line number Diff line number Diff line change 406406 "dev_mode" : DEBUG ,
407407 }
408408}
409+
410+ DEPLOYMENT_ENV = env ("DEPLOYMENT_ENV" , default = "production" )
Original file line number Diff line number Diff line change 77 class ="flex flex-grow items-center justify-between px-4 py-4 shadow-2 md:px-6 2xl:px-11 "
88 >
99 < div >
10- < a class ="navbar-brand fw-bolder " href ="/ ">
11- < img src ="{% static 'images/logo.png' %} " style ="max-width: 100px " />
10+ < a class ="navbar-brand fw-bolder flex items-center " href ="/ ">
11+ < img src ="{% static 'images/logo.png' %} " style ="max-width: 100px " /> {%if DEPLOYMENT_ENV != 'production' %} < span class =" ml-4 font-bold text-xl uppercase text-red-600 " > {{ DEPLOYMENT_ENV }} </ span > {% endif %}
1212 </ a >
1313 </ div >
1414
You can’t perform that action at this time.
0 commit comments