From a24bae475f8bc6fd9363dc877367f12a931209ff Mon Sep 17 00:00:00 2001 From: shibao Date: Thu, 5 May 2022 21:44:42 -0400 Subject: [PATCH] add registered on date to user card --- lib/lokal_web/components/user_card.ex | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) 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

- <%= if @user.confirmed_at |> is_nil() do %> - Email unconfirmed - <% else %> -

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 %>