canvas-lms/app/messages/enrollment_invitation.summa...

23 lines
1.1 KiB
Plaintext

<% define_content :link do %>
<%= HostUrl.protocol %>://<%= HostUrl.context_host(asset.course) %>/<%= asset.course.class.to_s.downcase.pluralize %>/<%= asset.course_id %>?invitation=<%= asset.uuid %>
<% end %>
<% define_content :subject do %>
<%= t :subject, "Course Invitation" %>
<% end %>
<%=
case asset.type
when 'TeacherEnrollment'
t :body_teacher, "You've been invited to participate in the course, %{course}, as a teacher.", :course => asset.course.name
when 'TaEnrollment'
t :body_ta, "You've been invited to participate in the course, %{course}, as a TA.", :course => asset.course.name
when 'ObserverEnrollment'
t :body_observer, "You've been invited to participate in the course, %{course}, as an observer.", :course => asset.course.name
when 'DesignerEnrollment'
t :body_designer, "You've been invited to participate in the course, %{course}, as a designer.", :course => asset.course.name
else
t :body_student, "You've been invited to participate in the course, %{course}, as a student.", :course => asset.course.name
end
%>