Display purchase date in details

This commit is contained in:
Claudio Ortolina
2024-10-19 19:29:40 +01:00
parent 54f8da81b6
commit d367c6fa09
2 changed files with 2 additions and 0 deletions
@@ -53,6 +53,7 @@
<%= genre %>
</span>
</:item>
<:item title="Purchased at"><%= @record.purchased_at %></:item>
<:item title="Inserted at"><%= @record.inserted_at %></:item>
<:item title="Updated at"><%= @record.updated_at %></:item>
</.list>
@@ -36,6 +36,7 @@ defmodule MusicLibraryWeb.RecordShowTest do
assert html =~ Record.format_short_label(record.format)
assert html =~ record.release
assert html =~ ~p"/covers/#{record.id}?vsn=#{record.cover_hash}"
assert html =~ Phoenix.HTML.Safe.to_iodata(record.purchased_at)
assert html =~ Phoenix.HTML.Safe.to_iodata(record.inserted_at)
assert html =~ Phoenix.HTML.Safe.to_iodata(record.updated_at)