<%= link_to course do %>

<%= "#{course.subject} #{course.course_number}" %>

<% end %>
<%= course.title %>
<%= course.credits %> credits
   

<%= course.description %>

<% unless course.prereqs.nil? || course.prereqs.empty? %> <% first, rest = course.prereqs.split(':') %> <% prereqs, note = rest.split('.') %>

<%= first %>: <%= prereqs %> <%= note %>

<% end %> <% if expanded %>

Minimize

<% else %>

Expand

<% end %>