canvas-lms/app/messages/enrollment_accepted.sms.erb

17 lines
972 B
Plaintext

<%=
case asset.type
when 'TeacherEnrollment'
t :body_teacher, "%{user} accepted the teacher invitation for the course, %{course}", :user => asset.user.name, :course => asset.course.name
when 'TaEnrollment'
t :body_ta, "%{user} accepted the TA invitation for the course, %{course}", :user => asset.user.name, :course => asset.course.name
when 'ObserverEnrollment'
t :body_observer, "%{user} accepted the observer invitation for the course, %{course}", :user => asset.user.name, :course => asset.course.name
when 'DesignerEnrollment'
t :body_designer, "%{user} accepted the designer invitation for the course, %{course}", :user => asset.user.name, :course => asset.course.name
else
t :body_student, "%{user} accepted the student invitation for the course, %{course}", :user => asset.user.name, :course => asset.course.name
end
%>
<%= t :details, "More info at %{url}", :url => HostUrl.context_host(asset.course) %>