diff --git a/lib/lokal_web/components/user_card.ex b/lib/lokal_web/components/user_card.ex index 8fad8b8..f78c3ca 100644 --- a/lib/lokal_web/components/user_card.ex +++ b/lib/lokal_web/components/user_card.ex @@ -18,12 +18,18 @@ defmodule LokalWeb.Components.UserCard do
User was confirmed at
- <%= @user.confirmed_at |> display_datetime() %> - <% end %> ++ <%= if @user.confirmed_at |> is_nil() do %> + Email unconfirmed + <% else %> + User was confirmed at <%= @user.confirmed_at |> display_datetime() %> + <% end %> +
+ ++ <%= gettext("User registered on") %> + <%= @user.inserted_at |> display_datetime() %> +
<%= if @inner_block do %>