<% define_content :link do -%>
  <%= polymorphic_url([asset.group.context, asset.group]) %>
<% end -%>
<% if asset.group.context.class.to_s == 'Account' -%>
<%= t('account_group', "Canvas Alert - Group Membership Accepted: %{group_name} for the account %{account_name}.", :group_name => asset.group.name, :account_name => asset.group.context.name) %>
<% elsif asset.group.context.class.to_s == 'Course' -%>
<%= t('course_group', "Canvas Alert - Group Membership Accepted: %{group_name} for the course %{course_name}.", :group_name => asset.group.name, :course_name => asset.group.context.name) %>
<% end -%>