improve formatting
This commit is contained in:
@ -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"""
|
||||
|
@ -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 %>
|
||||
|
@ -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 %>
|
||||
|
Reference in New Issue
Block a user