diff options
author | xengineering <me@xengineering.eu> | 2024-04-07 12:04:11 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-05-12 20:52:25 +0200 |
commit | bf328dd38a28cf44cfa81c7f1dcd95936d2d0301 (patch) | |
tree | b82d8b791bd3dbbb850c9e4620ca7456fe2a7c45 /model/recipe.go | |
parent | 01d97189d245300d65ca31d650dd868d1d1fc0d8 (diff) | |
download | ceres-bf328dd38a28cf44cfa81c7f1dcd95936d2d0301.tar ceres-bf328dd38a28cf44cfa81c7f1dcd95936d2d0301.tar.zst ceres-bf328dd38a28cf44cfa81c7f1dcd95936d2d0301.zip |
view: Add ingredient overview to recipe read page
Diffstat (limited to 'model/recipe.go')
-rw-r--r-- | model/recipe.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/model/recipe.go b/model/recipe.go index 7f8a1d5..7aebad4 100644 --- a/model/recipe.go +++ b/model/recipe.go @@ -260,11 +260,15 @@ func RecipeTestData() []Recipe { {Amount: "4", Unit: "pieces", Type: "egg"}, {Amount: "800", Unit: "g", Type: "special stuff"}, {Amount: "0.5", Unit: "l", Type: "milk"}, - {Amount: "", Unit: "", Type: "salt"}, }, }, {Text: "Heat up pan", Ingredients: []Ingredient{}}, - {Text: "Make pancakes!", Ingredients: []Ingredient{}}, + { + Text: "Make pancakes!", + Ingredients: []Ingredient{ + {Amount: "", Unit: "", Type: "sugar"}, + }, + }, }, }, { |