Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

don't render empty list element in ce (#4596)

ruslandoga576647888792
diff --git a/lib/plausible_web/templates/auth/login_form.html.heex b/lib/plausible_web/templates/auth/login_form.html.heex
index 921ffa7835..cf6b5f9cd1 100644
--- a/lib/plausible_web/templates/auth/login_form.html.heex
+++ b/lib/plausible_web/templates/auth/login_form.html.heex
@@ -38,14 +38,14 @@
<:footer>
<.focus_list>
- <:item>
- <%= if Keyword.fetch!(Application.get_env(:plausible, :selfhost), :disable_registration) == false do %>
- Don't have an account
- <.styled_link href="/register">
- Register
- </.styled_link>
- instead.
- <% end %>
+ <:item :if={
+ Keyword.fetch!(Application.get_env(:plausible, :selfhost), :disable_registration) == false
+ }>
+ Don't have an account
+ <.styled_link href="/register">
+ Register
+ </.styled_link>
+ instead.
</:item>
<:item>
Forgot password?