Add serving size to recipe url so it loads with num

This commit is contained in:
Patrick Magauran
2024-02-06 22:21:37 -05:00
parent 29438109a6
commit 13f532a67b
4 changed files with 13 additions and 5 deletions

View File

@@ -79,6 +79,7 @@
window.CUSTOM_LOCALE = '{{ request.LANGUAGE_CODE }}'
window.RECIPE_ID = {{recipe.pk}};
window.RECIPE_SERVINGS = '{{ servings }}'
window.SHARE_UID = '{{ share }}';
window.USER_PREF = {
'use_fractions': {% if request.user.userpreference.use_fractions %} true {% else %} false {% endif %},