mirror of
https://github.com/plausible/analytics.git
synced 2024-12-28 12:01:39 +03:00
25 lines
484 B
Elixir
25 lines
484 B
Elixir
|
<%= case Map.get(assigns, :user) do
|
||
|
%{name: name} when is_binary(name) -> "Hey #{String.split(name) |> List.first()},"
|
||
|
_any -> "Hey,"
|
||
|
end %>
|
||
|
<br /><br />
|
||
|
|
||
|
<%= @inner_content %>
|
||
|
<br /><br />
|
||
|
|
||
|
Thanks,<br />
|
||
|
<%= if Application.get_env(:plausible, :is_selfhost) do %>
|
||
|
Plausible
|
||
|
<% else %>
|
||
|
Uku and Marko
|
||
|
<% end %>
|
||
|
<br /><br />
|
||
|
|
||
|
--
|
||
|
<br /><br />
|
||
|
<%= link(plausible_url(), to: plausible_url()) %><br />
|
||
|
|
||
|
<%= if Map.get(assigns, :unsubscribe, false) do %>
|
||
|
{{{ pm:unsubscribe }}}
|
||
|
<% end %>
|