show.html.erb 681 Bytes
Newer Older
Zac Wood's avatar
Zac Wood committed
1
<div class="row">
2
    <div class="col-lg-4 col-12 mb-4">
Zac Wood's avatar
Zac Wood committed
3
	<h1><%= @instructor.name %></h1>
Zac Wood's avatar
Zac Wood committed
4

Zac Wood's avatar
Zac Wood committed
5
	<% unless @rating[:teaching].nil? %>
Zac Wood's avatar
Zac Wood committed
6
	    <%= render partial: 'shared/stars', locals: { percent: @rating[:teaching][0]/5*100 } %><br>
7
	    Average teaching rating: <%= @rating[:teaching][0] %> / <%= @rating[:teaching][1] %> responses
Zac Wood's avatar
Zac Wood committed
8
9
	<% end %>
    </div>
Zac Wood's avatar
Zac Wood committed
10
11
12
13
    
    <div class="col-lg-8 col-12">
	<% @semesters.each do |semester, sections| %>
	    <h2><%= semester %></h2>
Zac Wood's avatar
Zac Wood committed
14
	    <%= render(partial: 'shared/section', collection: sections, locals: { show_instr: false }) %>
Zac Wood's avatar
Zac Wood committed
15
	    <br/>
Zac Wood's avatar
Zac Wood committed
16
17
18
	<% end %>
    </div>
</div>
19

20
<%= javascript_pack_tag 'instructor' %>
21
<%= stylesheet_link_tag 'search' %>