<%= t("devise.mailer.invitation_instructions.hello", email: @resource.name) %>
<%= t("devise.mailer.invitation_instructions.invited_you_as_friend", invited_by: @resource.invited_by.name, application: @resource.organization.name) %>
<% if @opts[:custom_text].present? %><%= t("devise.mailer.invite_friend.friend_custom_text") %>
<%= @opts[:custom_text] %>
<% end %><%= t("devise.mailer.invite_friend.accept_invitation") %>
<%= link_to t("devise.mailer.invitation_instructions.accept"), accept_invitation_url(@resource, invitation_token: @token, invite_redirect: decidim_admin.root_path, host: @resource.organization.host) %>
<% if @resource.invitation_due_at %><%= t("devise.mailer.invitation_instructions.accept_until", due_date: l(@resource.invitation_due_at, format: :long)) %>
<% end %><%= t("devise.mailer.invitation_instructions.ignore").html_safe %>