%= if @stats.active > 0 do %>
<% rising_class = if @stats.rising, do: "teal", else: "red" %>
<%= @stats.trend_symbol %> <%= Float.round(@stats.active, 4) %> g/l
<%= @stats.last_cl %>cl @ <%= @stats.last_deg %>°
<%= if @stats.last_descr && @stats.last_descr != "" do %>
<%= @stats.last_descr %>
<% end %>
<%= LSGWeb.LayoutView.format_time(@stats.last_at) %>
a commencé il y a <%= @stats.since_s %>
—
sobre dans <%= @stats.sober_in_s %>
<% else %>
est sobre!
dernier verre
<%= @stats.last_cl %>cl @ <%= @stats.last_deg %>°
<%= if @stats.last_descr && @stats.last_descr != "" do %>
<%= @stats.last_descr %>
<% end %>
<%= LSGWeb.LayoutView.format_time(@stats.last_at) %>
<% end %>
Historique
date
|
|
|
<%= for {%{at: date, cl: cl, deg: deg, description: comment}, index} <- Enum.with_index(@history) do %>
<% class = if(Integer.is_even(index), do: "bg-gray-50", else: "bg-white") %>
<%= LSGWeb.LayoutView.format_time(date, false) %>
|
<%= cl %>cl <%= deg %>° |
<%= comment||"" %> |
<% end %>