2011-02-01 09:57:29 +08:00
|
|
|
<% define_content :link do %>
|
2014-03-14 01:44:09 +08:00
|
|
|
<%= course_url(asset.course, invitation: asset.uuid) %>
|
2011-02-01 09:57:29 +08:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% define_content :subject do %>
|
2011-06-30 06:47:21 +08:00
|
|
|
<%= t :subject, "Course Invitation" %>
|
2011-02-01 09:57:29 +08:00
|
|
|
<% end %>
|
|
|
|
|
2011-06-30 06:47:21 +08:00
|
|
|
<%=
|
|
|
|
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
|
2011-08-10 00:08:16 +08:00
|
|
|
when 'TaEnrollment'
|
2011-06-30 06:47:21 +08:00
|
|
|
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
|
2012-05-01 01:55:45 +08:00
|
|
|
when 'DesignerEnrollment'
|
2011-06-30 06:47:21 +08:00
|
|
|
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
|
|
|
|
%>
|