Removed double-negative from variable name
This commit is contained in:
parent
1f239c12d6
commit
d6b46a5108
3 changed files with 3 additions and 2 deletions
|
@ -9,4 +9,5 @@ class CustomTemplate(TemplateView):
|
|||
context = super().get_context_data(**kwargs)
|
||||
context['html_title'] = self.html_title
|
||||
context['body_class'] = self.body_class
|
||||
context['js_redirect'] = True
|
||||
return context
|
||||
|
|
|
@ -12,7 +12,7 @@ class NoJavascriptView(CustomTemplate):
|
|||
|
||||
def get_context_data(self, **kwargs):
|
||||
context = super().get_context_data(**kwargs)
|
||||
context['no_js_redirect'] = True
|
||||
context['js_redirect'] = False
|
||||
return context
|
||||
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
|
||||
<script type="text/javascript" src="{% static 'js/libs.js' %}"></script>
|
||||
<script type="text/javascript" src="{% static 'js/app.js' %}"></script>
|
||||
{% if not no_js_redirect %}
|
||||
{% if js_redirect %}
|
||||
<noscript>
|
||||
<style> html, body { display:none; }</style>
|
||||
<meta http-equiv="refresh" content="0.0;url={% url 'no-js' %}">
|
||||
|
|
Reference in a new issue