From 901c2a948fe05f116e03f6eecf73d3a76e6a0694 Mon Sep 17 00:00:00 2001 From: shibao Date: Thu, 5 May 2022 21:43:49 -0400 Subject: [PATCH] add created at date to ammo types --- lib/cannery_web/live/ammo_type_live/show.html.heex | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/cannery_web/live/ammo_type_live/show.html.heex b/lib/cannery_web/live/ammo_type_live/show.html.heex index 6fec5d3..3d980a8 100644 --- a/lib/cannery_web/live/ammo_type_live/show.html.heex +++ b/lib/cannery_web/live/ammo_type_live/show.html.heex @@ -87,6 +87,14 @@ <%= @ammo_type |> Ammo.get_used_count_for_ammo_type(@current_user) %> +

+ <%= gettext("Added on:") %> +

+ + + <%= @ammo_type.inserted_at |> display_datetime() %> + + <%= if @avg_cost_per_round do %>

<%= gettext("Average Price paid") %>: