<TRstyle="background-color: white;;"><TD>       
     <a href="#" id="<%= prefix %>Link" name="<%= prefix %>Link" onclick="toggleTeam('<%= prefix %>');return false;"><%=image_tag("expand.png")%></a>
     <%= tscore[:team].name %></TD>
     <% if tscore[:scores][:avg] %>
      	<TD COLSPAN="<%= col_avg_th_span_value %>" ALIGN="CENTER"><%= sprintf("%.2f",tscore[:scores][:avg]) %>%</TD>
       	<TD COLSPAN="<%= col_range_th_span_value %>" ALIGN="CENTER"><%= sprintf("%.0f",tscore[:scores][:min]) %>% - <%= sprintf("%.0f",tscore[:scores][:max]) %>%</TD>
     <% else %>
        <TD COLSPAN="<%= col_avg_th_span_value %>" ALIGN="CENTER">---</TD>
        <TD COLSPAN="<%= col_range_th_span_value %>" ALIGN="CENTER">---</TD>
     <% end %>
     <TD WIDTH="9">&nbsp;</TD></TR>  
     
<%= render :partial => 'participant_title', :locals => {:prefix => prefix } %>        
<% pindex = 3 %>
  <% for participant in tscore[:team].participants %>
     <%= render :partial => 'grades/participant',
                :locals => {:prefix => prefix+"_"+pindex.to_s,
     	 			        :team => true,
                            :pscore => @scores[:participants][participant.id.to_s.to_sym]} %>  
     <% pindex += 1 %>                            
<% end %>        

<TRstyle="background-color: white;;"><TD>       
     <a href="#" id="<%= prefix %>Link" name="<%= prefix %>Link" onclick="toggleTeam('<%= prefix %>');return false;"><%=image_tag("expand.png")%></a>
     <%= tscore[:team].name %>    <%= link_to "Alternate View", :controller => 'grades', :action => 'view_team', :id => tscore[:team].participants.first.id %></TD>
     <% if tscore[:scores][:avg] %>
      	<TD COLSPAN="<%= col_avg_th_span_value %>" ALIGN="CENTER"><%= sprintf("%.2f",tscore[:scores][:avg]) %>%</TD>
       	<TD COLSPAN="<%= col_range_th_span_value %>" ALIGN="CENTER"><%= sprintf("%.0f",tscore[:scores][:min]) %>% - <%= sprintf("%.0f",tscore[:scores][:max]) %>%</TD>
     <% else %>
        <TD COLSPAN="<%= col_avg_th_span_value %>" ALIGN="CENTER">---</TD>
        <TD COLSPAN="<%= col_range_th_span_value %>" ALIGN="CENTER">---</TD>
     <% end %>
     <TD WIDTH="9">&nbsp;</TD></TR>  
     
<%= render :partial => 'participant_title', :locals => {:prefix => prefix } %>        
<% pindex = 3 %>
  <% for participant in tscore[:team].participants %>
     <%= render :partial => 'grades/participant',
                :locals => {:prefix => prefix+"_"+pindex.to_s,
     	 			        :team => true,
                            :pscore => @scores[:participants][participant.id.to_s.to_sym]} %>  
     <% pindex += 1 %>                            
<% end %>        

Fix 1577, add link to heatmap on view score page for instructors.
Fix 1577, add link to heatmap on view score page for instructors.
