use .link helpers
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
shibao 2023-03-18 00:46:03 -04:00
parent f814fd74a1
commit 4c8c8e6bcd
6 changed files with 14 additions and 11 deletions

View File

@ -90,9 +90,9 @@
<%= dgettext("prompts", "register to setup memEx") %> <%= dgettext("prompts", "register to setup memEx") %>
</.link> </.link>
<% else %> <% else %>
<a :for={%{email: email} <- @admins} class="link" href={"mailto:#{email}"}> <.link :for={%{email: email} <- @admins} class="link" href={"mailto:#{email}"}>
<%= email %> <%= email %>
</a> </.link>
<% end %> <% end %>
</p> </p>
</li> </li>

View File

@ -56,16 +56,16 @@
<i class="fa-fw fa-lg fas fa-trash"></i> <i class="fa-fw fa-lg fas fa-trash"></i>
</.link> </.link>
<a <.link
href="#" href="#"
class="btn btn-secondary" class="btn btn-secondary"
phx-click={if invite.disabled_at, do: "enable_invite", else: "disable_invite"} phx-click={if invite.disabled_at, do: "enable_invite", else: "disable_invite"}
phx-value-id={invite.id} phx-value-id={invite.id}
> >
<%= if invite.disabled_at, do: gettext("enable"), else: gettext("disable") %> <%= if invite.disabled_at, do: gettext("enable"), else: gettext("disable") %>
</a> </.link>
<a <.link
:if={invite.disabled_at |> is_nil() and not (invite.uses_left |> is_nil())} :if={invite.disabled_at |> is_nil() and not (invite.uses_left |> is_nil())}
href="#" href="#"
class="btn btn-secondary" class="btn btn-secondary"
@ -78,7 +78,7 @@
} }
> >
<%= gettext("set unlimited") %> <%= gettext("set unlimited") %>
</a> </.link>
</.invite_card> </.invite_card>
<.link <.link

View File

@ -24,9 +24,12 @@
<hr class="w-full hr" /> <hr class="w-full hr" />
<a href={Routes.live_path(Endpoint, HomeLive)} class="link title text-primary-400 text-lg"> <.link
href={Routes.live_path(Endpoint, HomeLive)}
class="link title text-primary-400 text-lg"
>
<%= dgettext("errors", "go back home") %> <%= dgettext("errors", "go back home") %>
</a> </.link>
</div> </div>
</div> </div>
</body> </body>

View File

@ -83,7 +83,7 @@ msgstr ""
msgid "invalid format: only numbers, letters and hyphen are accepted" msgid "invalid format: only numbers, letters and hyphen are accepted"
msgstr "" msgstr ""
#: lib/memex_web/templates/error/error.html.heex:28 #: lib/memex_web/templates/error/error.html.heex:31
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "go back home" msgid "go back home"
msgstr "" msgstr ""

View File

@ -84,7 +84,7 @@ msgstr ""
msgid "invalid format: only numbers, letters and hyphen are accepted" msgid "invalid format: only numbers, letters and hyphen are accepted"
msgstr "" msgstr ""
#: lib/memex_web/templates/error/error.html.heex:28 #: lib/memex_web/templates/error/error.html.heex:31
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "go back home" msgid "go back home"
msgstr "" msgstr ""

View File

@ -83,7 +83,7 @@ msgstr ""
msgid "invalid format: only numbers, letters and hyphen are accepted" msgid "invalid format: only numbers, letters and hyphen are accepted"
msgstr "" msgstr ""
#: lib/memex_web/templates/error/error.html.heex:28 #: lib/memex_web/templates/error/error.html.heex:31
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "go back home" msgid "go back home"
msgstr "" msgstr ""