<%= @instructor.name %>

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

<%= semester %>

<%= render(partial: 'shared/section', collection: sections, locals: { show_instr: false }) %>
<% end %>
<%= javascript_pack_tag 'instructor' %> <%= stylesheet_link_tag 'search' %>