formatted file
This commit is contained in:
parent
5211fbe6da
commit
08a2b4d0b2
@ -2,6 +2,7 @@
|
|||||||
{% load render_bundle from webpack_loader %}
|
{% load render_bundle from webpack_loader %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block title %} {{ title }} {% endblock %}
|
{% block title %} {{ title }} {% endblock %}
|
||||||
|
|
||||||
{% block content_fluid %}
|
{% block content_fluid %}
|
||||||
@ -10,16 +11,21 @@
|
|||||||
<shopping-list-view></shopping-list-view>
|
<shopping-list-view></shopping-list-view>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %} {% block script %} {% if debug %}
|
{% endblock %}
|
||||||
<script src="{% url 'js_reverse' %}"></script>
|
|
||||||
{% else %}
|
|
||||||
<script src="{% static 'django_js_reverse/reverse.js' %}"></script>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<script type="application/javascript">
|
{% block script %}
|
||||||
|
{% if debug %}
|
||||||
|
<script src="{% url 'js_reverse' %}"></script>
|
||||||
|
{% else %}
|
||||||
|
<script src="{% static 'django_js_reverse/reverse.js' %}"></script>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<script type="application/javascript">
|
||||||
window.IMAGE_PLACEHOLDER = "{% static 'assets/recipe_no_image.svg' %}"
|
window.IMAGE_PLACEHOLDER = "{% static 'assets/recipe_no_image.svg' %}"
|
||||||
window.CUSTOM_LOCALE = '{{ request.LANGUAGE_CODE }}'
|
window.CUSTOM_LOCALE = '{{ request.LANGUAGE_CODE }}'
|
||||||
window.SHOPPING_MIN_AUTOSYNC_INTERVAL = {{ SHOPPING_MIN_AUTOSYNC_INTERVAL }}
|
window.SHOPPING_MIN_AUTOSYNC_INTERVAL = {{ SHOPPING_MIN_AUTOSYNC_INTERVAL }}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{% render_bundle 'shopping_list_view' %} {% endblock %}
|
|
||||||
|
{% render_bundle 'shopping_list_view' %}
|
||||||
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user