mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
fixed access for shared recipes
This commit is contained in:
@@ -65,9 +65,10 @@
|
||||
<script type="application/javascript">
|
||||
window.RECIPE_ID = {{recipe.pk}};
|
||||
window.USER_SERVINGS = {{ user_servings }};
|
||||
window.SHARE_UID = '{{ share }}';
|
||||
window.USER_PREF = {
|
||||
'use_fractions': {% if request.user.userpreference.use_fractions %} true {% else %} false {% endif %},
|
||||
'ingredient_decimals': {{ request.user.userpreference.ingredient_decimals }},
|
||||
'ingredient_decimals': {% if request.user.userpreference.use_fractions %} {{ request.user.userpreference.ingredient_decimals }} {% else %} 2 {% endif %},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user