collaboration_invitation.email.mustache 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. <% define_content :link do %>
  2. <%= polymorphic_url([asset.collaboration.context, asset.collaboration.becomes(Collaboration)]) %>
  3. <% end %>
  4. <% define_content :subject do %>
  5. <%= t :subject, "Collaboration Invitation: %{course_or_group}", :course_or_group => asset.collaboration.context.name %>
  6. <% end %>
  7. <%= t :body, <<-BODY, :document => asset.collaboration.title, :course_or_group => asset.collaboration.context.name, :service => asset.collaboration.service_name, :email => asset.user.gmail, :link => content(:link) unless asset.collaboration.user
  8. You've been invited to collaborate on a document, %{document} for
  9. %{course_or_group}. The document was created in %{service}
  10. and you were invited using your email address, %{email}.
  11. If that's the wrong email address for this type of collaboration, you'll need to
  12. change your profile settings or register with %{service}.
  13. You can see the details here:
  14. %{link}
  15. BODY
  16. %>
  17. <%= t :body_with_user, <<-BODY, :document => asset.collaboration.title, :course_or_group => asset.collaboration.context.name, :user => asset.collaboration.user.short_name, :service => asset.collaboration.service_name, :email => asset.user.gmail, :link => content(:link) if asset.collaboration.user
  18. You've been invited to collaborate on a document, %{document} for
  19. %{course_or_group}. The document was created by %{user}
  20. in %{service} and you were invited using your email address, %{email}.
  21. If that's the wrong email address for this type of collaboration, you'll need to
  22. change your profile settings or register with %{service}.
  23. You can see the details here:
  24. %{link}
  25. BODY
  26. %>