canvas-lms/app/messages/enrollment_accepted.email.h...

29 lines
1.4 KiB
Plaintext

<% define_content :link do %>
<%= course_users_url(asset.course_id) %>
<% end %>
<% define_content :subject do %>
<%= t :subject, "%{user} accepted the Course Invitation", :user => asset.user.name %>
<% end %>
<% define_content :footer_link do %>
<a href="<%= content(:link) %>">
<%= t :details, "See the list of current enrollments" %>
</a>
<% end %>
<p><%=
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
%></p>