26 lines
1.4 KiB
Plaintext
26 lines
1.4 KiB
Plaintext
<% define_content :link do %>
|
|
<%= HostUrl.protocol %>://<%= HostUrl.context_host(asset.course) %>/<%= asset.course.class.to_s.downcase.pluralize %>/<%= asset.course_id %>/users
|
|
<% end %>
|
|
|
|
<% define_content :subject do %>
|
|
<%= t :subject, "%{user} accepted the Course Invitation", :user => asset.user.name %>
|
|
<% end %>
|
|
|
|
<%=
|
|
case asset.type
|
|
when 'TeacherEnrollment'
|
|
t :body_teacher, "%{user} just accepted their invitation to participate in the course, %{course}, as a teacher.", :user => asset.user.name, :course => asset.course.name
|
|
when 'TaEnrollment'
|
|
t :body_ta, "%{user} just accepted their invitation to participate in the course, %{course}, as a TA.", :user => asset.user.name, :course => asset.course.name
|
|
when 'ObserverEnrollment'
|
|
t :body_observer, "%{user} just accepted their invitation to participate in the course, %{course}, as an observer.", :user => asset.user.name, :course => asset.course.name
|
|
when 'DesignerEnrollment'
|
|
t :body_designer, "%{user} just accepted their invitation to participate in the course, %{course}, as a designer.", :user => asset.user.name, :course => asset.course.name
|
|
else
|
|
t :body_student, "%{user} just accepted their invitation to participate in the course, %{course}, as a student.", :user => asset.user.name, :course => asset.course.name
|
|
end
|
|
%>
|
|
|
|
<%= t :details, "See the list of current enrollments here:" %>
|
|
<%= content :link %>
|