expertiza/expertiza

View on GitHub
app/views/grades/_author_feedback_tab.html.erb

Summary

Maintainability
Test Coverage
<% unless tscore.nil? %>
  <table class="participants" width="100%">
    <% tscore[:team].participants.each_with_index do |participant, index| %>
      <% pscore = @scores[:participants][participant.id.to_s.to_sym] %>
      <tr style="background-color: #f9f9f9">
        <td>
          <a href="#" id="<%=prefix%>_<%=index.to_s%>_feedbackLink" name="<%=prefix%>_feedbackLink" onClick="toggleElement('<%=prefix%>_<%=index.to_s%>_feedback','author feedbacks');return false;"><b> <%=participant.fullname(session[:ip]) %></b></a> (<%=  FeedbackResponseMap.where(reviewer_id: participant.id).count rescue 0 %>)
        </td>
      <tr id="<%=prefix%>_<%=index.to_s%>_feedback" style="display:none">
        <td>
          <%= view_heatgrid(participant.id, "AuthorFeedbackQuestionnaire") %>
        </td>
      </tr>
    <% end %>
  </table>
<% end %>