<%= render partial: 'shared/navbar' %>

<%= @course.full_name %>

<%= @course.title %>

<% unless @rating.nil? %> <%= render partial: 'shared/stars', locals: { percent: @course.rating[0]/5*100 } %> Average course rating: <%= @course.rating[0] %> / <%= @course.rating[1] %> responses <% end %>

<%= @course.credits %> <%= 'credit'.pluralize(@course.credits.to_i) %>

<%= @taught_in %>

<%= @course.description %>.

<% @sections.each do |type, sections| %> <% if @sections.keys.length > 1 %>
<%= type %>
<% end %> <% end %>