mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
Convert nutrition input from KJ to calories with preference
This commit is contained in:
@@ -32,6 +32,9 @@
|
||||
window.CUSTOM_LOCALE = '{{ request.LANGUAGE_CODE }}'
|
||||
window.RECIPE_ID = {{ recipe.pk }}
|
||||
window.DEFAULT_UNIT = '{{request.user.userpreference.default_unit}}'
|
||||
window.USER_PREF = {
|
||||
'use_kj': {% if request.user.userpreference.use_kj %} true {% else %} false {% endif %},
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user