Merge pull request #2938 from patmagauran/meal-plan-serving-size-link

Add ability to open recipes with specified number of servings from meal plan
This commit is contained in:
vabene1111
2024-02-16 19:46:36 +01:00
committed by GitHub
4 changed files with 21 additions and 8 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 %},