add created date to ammo groups

This commit is contained in:
2022-05-05 21:43:03 -04:00
parent 4791a2849e
commit ce7223597c
3 changed files with 20 additions and 0 deletions

View File

@ -37,6 +37,11 @@ defmodule CanneryWeb.Components.AmmoGroupCard do
</span>
<% end %>
<span class="rounded-lg title text-lg">
<%= gettext("Added on:") %>
<%= @ammo_group.inserted_at |> display_datetime() %>
</span>
<%= if @ammo_group.price_paid do %>
<span class="rounded-lg title text-lg">
<%= gettext("Price paid:") %>