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 ae61e8b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions app/views/drinks/_drink.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,12 @@
= 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
€/L
%br
- if drink.caffeine && !drink.caffeine.zero?
= sprintf('%.2f', (drink.caffeine / drink.price))
mg caffeine/€
- else
??? mg caffeine/€

0 comments on commit ae61e8b

Please sign in to comment.