add registered on date to user card
This commit is contained in:
parent
c8b84c1da2
commit
a24bae475f
@ -18,12 +18,18 @@ defmodule LokalWeb.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">
|
||||||
|
<p>
|
||||||
<%= if @user.confirmed_at |> is_nil() do %>
|
<%= if @user.confirmed_at |> is_nil() do %>
|
||||||
Email unconfirmed
|
Email unconfirmed
|
||||||
<% else %>
|
<% else %>
|
||||||
<p>User was confirmed at</p>
|
User was confirmed at <%= @user.confirmed_at |> display_datetime() %>
|
||||||
<%= @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 %>
|
||||||
|
Loading…
Reference in New Issue
Block a user