<%= render course_participation.user %> | <%= course_participation.role.to_s.capitalize %> | <% if current_user.is_administrator_at?(@course.school) || current_user.admin? %><%= form_for course_participation, html: { method: :delete } do |f| %> <%= f.submit "Remove", class: "btn btn-danger" %> <% end %> | <% end %>