Skip to content

Commit

Permalink
fix stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsVipra committed May 27, 2023
1 parent dacc2e3 commit a4f8610
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/views/drinks/_drink.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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/€

0 comments on commit a4f8610

Please sign in to comment.