use attrs for user card
This commit is contained in:
parent
f8a1d88e0e
commit
db2ec3b4a3
@ -4,6 +4,10 @@ defmodule LokalWeb.Components.UserCard do
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
use LokalWeb, :component
|
use LokalWeb, :component
|
||||||
|
alias Lokal.Accounts.User
|
||||||
|
|
||||||
|
attr :user, User, required: true
|
||||||
|
slot(:inner_block, required: true)
|
||||||
|
|
||||||
def user_card(assigns) do
|
def user_card(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
|
@ -147,7 +147,7 @@ msgstr ""
|
|||||||
msgid "Language"
|
msgid "Language"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/lokal_web/components/user_card.ex:29
|
#: lib/lokal_web/components/user_card.ex:33
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Email unconfirmed"
|
msgid "Email unconfirmed"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -161,12 +161,12 @@ msgstr ""
|
|||||||
msgid "Lokal"
|
msgid "Lokal"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/lokal_web/components/user_card.ex:34
|
#: lib/lokal_web/components/user_card.ex:38
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "User registered on%{registered_datetime}"
|
msgid "User registered on%{registered_datetime}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/lokal_web/components/user_card.ex:23
|
#: lib/lokal_web/components/user_card.ex:27
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "User was confirmed at%{confirmed_datetime}"
|
msgid "User was confirmed at%{confirmed_datetime}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -147,7 +147,7 @@ msgstr ""
|
|||||||
msgid "Language"
|
msgid "Language"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/lokal_web/components/user_card.ex:29
|
#: lib/lokal_web/components/user_card.ex:33
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Email unconfirmed"
|
msgid "Email unconfirmed"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -161,12 +161,12 @@ msgstr ""
|
|||||||
msgid "Lokal"
|
msgid "Lokal"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/lokal_web/components/user_card.ex:34
|
#: lib/lokal_web/components/user_card.ex:38
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "User registered on%{registered_datetime}"
|
msgid "User registered on%{registered_datetime}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/lokal_web/components/user_card.ex:23
|
#: lib/lokal_web/components/user_card.ex:27
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "User was confirmed at%{confirmed_datetime}"
|
msgid "User was confirmed at%{confirmed_datetime}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
Loading…
Reference in New Issue
Block a user