defmodule MemexWeb.Components.UserCard do @moduledoc """ Display card for a user """ use MemexWeb, :component def user_card(assigns) do ~H"""
<%= if @user.confirmed_at |> is_nil() do %> <%= gettext("email unconfirmed") %> <% else %>
<%= gettext("user confirmed on") %> <%= @user.confirmed_at |> display_datetime() %>
<% end %><%= gettext("user registered on") %> <%= @user.inserted_at |> display_datetime() %>
<%= if @inner_block do %>