improve formatting

This commit is contained in:
2023-01-26 00:39:16 -05:00
parent 8ea2b06487
commit 0ad1ee47de
21 changed files with 244 additions and 134 deletions

View File

@ -116,7 +116,12 @@ defmodule CanneryWeb.AmmoGroupLive.Show do
value =
case key do
:date ->
{date, date |> display_date()}
assigns = %{date: date}
{date,
~H"""
<.date date={@date} />
"""}
:actions ->
~H"""

View File

@ -28,7 +28,7 @@
<span class="rounded-lg title text-lg">
<%= gettext("Purchased on:") %>
<%= @ammo_group.purchased_on |> display_date() %>
<.date date={@ammo_group.purchased_on} />
</span>
<%= if @ammo_group.price_paid do %>

View File

@ -124,7 +124,7 @@
</h3>
<span class="text-primary-600">
<%= @ammo_type.inserted_at |> display_datetime() %>
<.datetime datetime={@ammo_type.inserted_at} />
</span>
<%= if @avg_cost_per_round do %>