new_context_group_membership.summary.mustache 731 B

12345678910111213141516
  1. <% define_content :link do %>
  2. <%= polymorphic_url([asset.group.context, asset.group]) %>
  3. <% end %>
  4. <% define_content :subject do %>
  5. <%= t :subject, "New Group Membership for %{course_or_account}", :course_or_account => asset.group.context.name %>
  6. <% end %>
  7. <%=
  8. case asset.group.context_type
  9. when 'Account'
  10. t :body_account, "You've been added to a new group for the account %{account}. The name of the group is %{group_name}.", :account => asset.group.context.name, :group_name => asset.group.name
  11. else
  12. t :body_course, "You've been added to a new group for the course %{course}. The name of the group is %{group_name}.", :course => asset.group.context.name, :group_name => asset.group.name
  13. end
  14. %>