add registered on date to user card

This commit is contained in:
shibao 2022-05-05 21:43:13 -04:00
parent ce7223597c
commit 6fe5a29ebd

View File

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