add registered on date to user card

This commit is contained in:
shibao 2022-05-05 21:44:42 -04:00 committed by oliviasculley
parent 9408705430
commit 38a581b639

View File

@ -18,12 +18,18 @@ defmodule LokalWeb.Components.UserCard do
</h1>
<h3 class="px-4 py-2 rounded-lg title text-lg">
<p>
<%= if @user.confirmed_at |> is_nil() do %>
Email unconfirmed
<% else %>
<p>User was confirmed at</p>
<%= @user.confirmed_at |> display_datetime() %>
User was confirmed at <%= @user.confirmed_at |> display_datetime() %>
<% end %>
</p>
<p>
<%= gettext("User registered on") %>
<%= @user.inserted_at |> display_datetime() %>
</p>
</h3>
<%= if @inner_block do %>