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

21 lines
943 B
Plaintext

<%=
case asset.type
when 'TeacherEnrollment'
t :body_teacher, "You've been invited to the course as a teacher."
when 'TaEnrollment'
t :body_ta, "You've been invited to the course as a TA."
when 'ObserverEnrollment'
t :body_observer, "You've been invited to the course as an observer."
when 'DesignerEnrollment'
t :body_designer, "You've been invited to the course as a designer."
else
t :body_student, "You've been invited to the course as a student."
end
%>
<% email = asset.user.email; login = (asset.user.pseudonym.unique_id rescue "none") %>
<%= before_label :name, "Name" %> <%= asset.user.name %>
<%= before_label :email, "Email" %> <%= asset.user.email %>
<% if email != login %><%= before_label :username, "Username" %> <%= asset.user.pseudonym.unique_id rescue t(:none, "none") %><% end %>
<%= t :details, "More info at %{url}", :url => HostUrl.context_host(asset.course) %>