remove Plausible Team footer from self-hosted emails (#3980)

* remove Plausible Team footer from self-hosted

* don't test unsubscribe placeholder in small build
This commit is contained in:
ruslandoga 2024-04-09 15:04:23 +08:00 committed by GitHub
parent b951065724
commit 94deb89b9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 5 deletions

View File

@ -4,12 +4,12 @@
<%= @inner_content %>
<br /><br />
Regards,<br />
<%= if full_build?() do %>Regards,<br />
The Plausible Team 💌
<br /><br />
<br /><br /><% end %>
--
<br /><br />
<%= link(plausible_url(), to: plausible_url()) %><br />
{{{ pm:unsubscribe }}}
<%= if full_build?() do %>{{{ pm:unsubscribe }}}<% end %>

View File

@ -4,9 +4,9 @@
<%= @inner_content %>
<br /><br />
Regards,<br />
<%= if full_build?() do %>Regards,<br />
The Plausible Team 💌
<br /><br />
<br /><br /><% end %>
--
<br /><br />

View File

@ -31,6 +31,7 @@ defmodule PlausibleWeb.EmailTest do
assert email.html_body =~ plausible_link()
end
@tag :full_build_only
test "renders unsubscribe placeholder" do
email =
Email.base_email()