<%# Requires parameter efforts %>

<table class="table table-condensed table-striped">
  <thead>
  <tr>
    <th><%= "#{@participant.full_name}'s efforts:" %></th>
    <th>From</th>
    <th class="text-right">Finish Time</th>
    <% if @current_user && @current_user.admin? %>
        <th class="text-right">Actions</th>
    <% end %>
  </tr>
  </thead>
  <tbody>
  <% efforts.each do |effort| %>
      <% if effort.bad? %>
          <tr class="text-danger">
      <% elsif effort.questionable? %>
          <tr class="text-warning">
      <% else %>
          <tr>
      <% end %>
      <td><strong><%= link_to effort.event.name, effort_path(effort) %></strong></td>
      <td><%= effort.state_and_country %></td>
      <td class="text-right"><%= effort.try(:time) || effort.finish_status %></td>
      <% if @current_user && @current_user.admin? %>
          <td class="text-right"><%= link_to 'Disassociate',
                                             remove_effort_participant_path(@participant, effort_id: effort.id),
                                             method: :delete,
                                             class: 'btn btn-xs btn-danger' %></td>
      <% end %>
      </tr>
  <% end %>
  </tbody>
</table>
<%# Requires parameter efforts %>

<table class="table table-condensed table-striped">
  <thead>
  <tr>
    <th><%= "#{@participant.full_name}'s efforts:" %></th>
    <th>From</th>
    <th class="text-right">Finish Time</th>
    <% if @current_user && @current_user.admin? %>
        <th class="text-right">Actions</th>
    <% end %>
  </tr>
  </thead>
  <tbody>
  <% efforts.each do |effort| %>
      <% if effort.bad? %>
          <tr class="text-danger">
      <% elsif effort.questionable? %>
          <tr class="text-warning">
      <% else %>
          <tr>
      <% end %>
      <td><strong><%= link_to effort.event.name, effort_path(effort) %></strong></td>
      <td><%= effort.state_and_country %></td>
      <td class="text-right"><%= effort.finish_status %></td>
      <% if @current_user && @current_user.admin? %>
          <td class="text-right"><%= link_to 'Disassociate',
                                             remove_effort_participant_path(@participant, effort_id: effort.id),
                                             method: :delete,
                                             class: 'btn btn-xs btn-danger' %></td>
      <% end %>
      </tr>
  <% end %>
  </tbody>
</table>
Remove obsolete code from _efforts_list_participant partial.
Remove obsolete code from _efforts_list_participant partial.
