19 lines
768 B
Plaintext
19 lines
768 B
Plaintext
<% define_content :link do %>
|
|
<%= course_url(asset.course, invitation: asset.uuid) %>
|
|
<% end %>
|
|
|
|
<% define_content :subject do %>
|
|
<%= t :subject, "Course Invitation" %>
|
|
<% end %>
|
|
|
|
<%= t "You've been invited to participate in the course, %{course}. Course role: %{role_type}",
|
|
:course => asset.course.name, :role_type => asset.readable_role_name %>
|
|
|
|
<% 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, "Visit the course page here:" %>
|
|
<%= content :link %>
|