-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add email flow for ownership transfer
- Loading branch information
Showing
11 changed files
with
221 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
lib/plausible_web/templates/email/existing_user_invitation.html.eex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
lib/plausible_web/templates/email/ownership_transfer_accepted.html.eex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Hey <%= user_salutation(@invitation.inviter) %>, | ||
<br /><br /> | ||
<%= @invitation.email %> has accepted the ownership transfer of <%= @invitation.site.domain %>. They will be responsible for billing of it going | ||
forward and your role has been changed to <b>admin</b>. | ||
<%= link("Click here", to: Routes.site_path(PlausibleWeb.Endpoint, :settings_general, @invitation.site.domain)) %> to view site settings. | ||
<br /><br /> | ||
Thanks,<br /> | ||
Uku and Marko<br /> | ||
--<br /> | ||
<%= plausible_url() %><br /> |
9 changes: 9 additions & 0 deletions
9
lib/plausible_web/templates/email/ownership_transfer_rejected.html.eex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Hey <%= user_salutation(@invitation.inviter) %>, | ||
<br /><br /> | ||
<%= @invitation.email %> has rejected the ownership transfer of <%= @invitation.site.domain %>. | ||
<%= link("Click here", to: Routes.site_path(PlausibleWeb.Endpoint, :settings_general, @invitation.site.domain)) %> to view site settings. | ||
<br /><br /> | ||
Thanks,<br /> | ||
Uku and Marko<br /> | ||
--<br /> | ||
<%= plausible_url() %><br /> |
15 changes: 15 additions & 0 deletions
15
lib/plausible_web/templates/email/ownership_transfer_request.html.eex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Hey, | ||
<br /><br /> | ||
<%= @invitation.inviter.email %> has request to transfer the ownership of <%= @invitation.site.domain %> site on Plausible Analytics to you. | ||
<%= if @new_owner_account do %> | ||
<%= link("Click here", to: Routes.site_path(PlausibleWeb.Endpoint, :index)) %> to view and respond to the invitation. | ||
<% else %> | ||
<%= link("Click here", to: Routes.auth_path(PlausibleWeb.Endpoint, :register_form), invitation: @invitation.invitation_id) %> to create your account. | ||
<br /><br /> | ||
Plausible is a lightweight and open-source website analytics tool. We hope you like our simple and ethical approach to tracking website visitors. | ||
<% end %> | ||
<br /><br /> | ||
Thanks,<br /> | ||
Uku and Marko<br /> | ||
--<br /> | ||
<%= plausible_url() %><br /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.