From 48f7c8d18eda1c0305c030e8c86de9f7e8761dc1 Mon Sep 17 00:00:00 2001 From: shibao Date: Sat, 24 Feb 2024 13:14:38 -0500 Subject: [PATCH] fix empty invite index page --- changelog.md | 1 + lib/memex_web/live/invite_live/index.html.heex | 6 +++--- priv/gettext/actions.pot | 10 +++++----- priv/gettext/de/LC_MESSAGES/actions.po | 10 +++++----- priv/gettext/en/LC_MESSAGES/actions.po | 10 +++++----- 5 files changed, 19 insertions(+), 18 deletions(-) diff --git a/changelog.md b/changelog.md index 04167c7..d5330bf 100644 --- a/changelog.md +++ b/changelog.md @@ -1,4 +1,5 @@ # v0.1.16 +- Fix empty invite index page - Fix faq copy # v0.1.15 diff --git a/lib/memex_web/live/invite_live/index.html.heex b/lib/memex_web/live/invite_live/index.html.heex index e754bdd..1168476 100644 --- a/lib/memex_web/live/invite_live/index.html.heex +++ b/lib/memex_web/live/invite_live/index.html.heex @@ -4,12 +4,12 @@ <%= if @invites |> Enum.empty?() do %> -

+

<%= gettext("no invites 😔") %>

- <.link patch={~p"/invites"} class="btn btn-primary"> - <%= dgettext("actions", "invite someone new!") %> + <.link patch={~p"/invites"} class="ml-auto btn btn-primary"> + <%= dgettext("actions", "new invite") %> <% end %> diff --git a/priv/gettext/actions.pot b/priv/gettext/actions.pot index e88778d..84678b0 100644 --- a/priv/gettext/actions.pot +++ b/priv/gettext/actions.pot @@ -66,11 +66,6 @@ msgstr "" msgid "edit" msgstr "" -#: lib/memex_web/live/invite_live/index.html.heex:12 -#, elixir-autogen, elixir-format -msgid "invite someone new!" -msgstr "" - #: lib/memex_web/components/core_components/topbar.html.heex:85 #: lib/memex_web/controllers/user_confirmation_html/new.html.heex:28 #: lib/memex_web/controllers/user_registration_html/new.html.heex:44 @@ -217,3 +212,8 @@ msgstr "" #, elixir-autogen, elixir-format msgid "reset password" msgstr "" + +#: lib/memex_web/live/invite_live/index.html.heex:12 +#, elixir-autogen, elixir-format +msgid "new invite" +msgstr "" diff --git a/priv/gettext/de/LC_MESSAGES/actions.po b/priv/gettext/de/LC_MESSAGES/actions.po index 6355126..a483c22 100644 --- a/priv/gettext/de/LC_MESSAGES/actions.po +++ b/priv/gettext/de/LC_MESSAGES/actions.po @@ -66,11 +66,6 @@ msgstr "" msgid "edit" msgstr "" -#: lib/memex_web/live/invite_live/index.html.heex:12 -#, elixir-autogen, elixir-format -msgid "invite someone new!" -msgstr "" - #: lib/memex_web/components/core_components/topbar.html.heex:85 #: lib/memex_web/controllers/user_confirmation_html/new.html.heex:28 #: lib/memex_web/controllers/user_registration_html/new.html.heex:44 @@ -217,3 +212,8 @@ msgstr "" #, elixir-autogen, elixir-format, fuzzy msgid "reset password" msgstr "" + +#: lib/memex_web/live/invite_live/index.html.heex:12 +#, elixir-autogen, elixir-format, fuzzy +msgid "new invite" +msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/actions.po b/priv/gettext/en/LC_MESSAGES/actions.po index 852740f..5b36502 100644 --- a/priv/gettext/en/LC_MESSAGES/actions.po +++ b/priv/gettext/en/LC_MESSAGES/actions.po @@ -67,11 +67,6 @@ msgstr "" msgid "edit" msgstr "" -#: lib/memex_web/live/invite_live/index.html.heex:12 -#, elixir-autogen, elixir-format -msgid "invite someone new!" -msgstr "" - #: lib/memex_web/components/core_components/topbar.html.heex:85 #: lib/memex_web/controllers/user_confirmation_html/new.html.heex:28 #: lib/memex_web/controllers/user_registration_html/new.html.heex:44 @@ -218,3 +213,8 @@ msgstr "" #, elixir-autogen, elixir-format, fuzzy msgid "reset password" msgstr "" + +#: lib/memex_web/live/invite_live/index.html.heex:12 +#, elixir-autogen, elixir-format, fuzzy +msgid "new invite" +msgstr ""