From a4f86101b063175cb98825e8c2fba777d67342a0 Mon Sep 17 00:00:00 2001 From: ItsVipra Date: Sat, 27 May 2023 17:12:07 +0200 Subject: [PATCH] fix stuff --- app/views/drinks/_drink.html.haml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/views/drinks/_drink.html.haml b/app/views/drinks/_drink.html.haml index 45f08c3c..6ff843ca 100644 --- a/app/views/drinks/_drink.html.haml +++ b/app/views/drinks/_drink.html.haml @@ -10,5 +10,10 @@ = image_tag drink.logo(:thumb), alt: drink.name, class: drink.active? ? "" : "disabled" .card-footer = show_amount drink.price - = show_amount (drink.price / drink.bottle_size)*100 - = show_amount (drink.caffeine / drink.price) if drink.caffeine + %br + = (drink.price / drink.bottle_size)*100 + €/100ml + - if drink.caffeine + = sprintf('%.2f', (drink.caffeine / drink.price)) + mg caffeine/€ +