1
Fork 0

Removed double-negative from variable name

This commit is contained in:
Jake Howard 2015-12-11 08:40:01 +00:00
parent 1f239c12d6
commit d6b46a5108
3 changed files with 3 additions and 2 deletions

View file

@ -9,4 +9,5 @@ class CustomTemplate(TemplateView):
context = super().get_context_data(**kwargs) context = super().get_context_data(**kwargs)
context['html_title'] = self.html_title context['html_title'] = self.html_title
context['body_class'] = self.body_class context['body_class'] = self.body_class
context['js_redirect'] = True
return context return context

View file

@ -12,7 +12,7 @@ class NoJavascriptView(CustomTemplate):
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs) context = super().get_context_data(**kwargs)
context['no_js_redirect'] = True context['js_redirect'] = False
return context return context

View file

@ -37,7 +37,7 @@
<script type="text/javascript" src="{% static 'js/libs.js' %}"></script> <script type="text/javascript" src="{% static 'js/libs.js' %}"></script>
<script type="text/javascript" src="{% static 'js/app.js' %}"></script> <script type="text/javascript" src="{% static 'js/app.js' %}"></script>
{% if not no_js_redirect %} {% if js_redirect %}
<noscript> <noscript>
<style> html, body { display:none; }</style> <style> html, body { display:none; }</style>
<meta http-equiv="refresh" content="0.0;url={% url 'no-js' %}"> <meta http-equiv="refresh" content="0.0;url={% url 'no-js' %}">