<tbody class="<%= dom_id(easy_entity_activity) %>">
<% c_cycle = cycle('odd', 'even') %>
<tr class="<%= c_cycle %> <%= 'entity-activity-end' if easy_entity_activity.description.blank? %>">
  <td><%= format_object(User.current.user_time_in_zone(easy_entity_activity.start_time)) if easy_entity_activity.start_time %></td>
  <td><%= format_object(easy_entity_activity.category) %></td>
  <% if !easy_entity_activity.is_finished? && easy_entity_activity.planned? %>
    <td><%= link_to '', easy_entity_activity_path(easy_entity_activity, easy_entity_activity: {is_finished: true}), remote: true, method: :patch, class: 'icon icon-checked-circle', title: l(:field_is_planned) %></td>
  <% else %>
    <td class="tick"><%= checked_image easy_entity_activity.is_finished? %></td>
  <% end %>
  <td class="entity-array">
    <% easy_entity_activity.easy_entity_activity_attendees.to_a.sort_by(&:to_s).each do |attendee| %>
      <span><%= link_to_entity(attendee.entity) %></span>
    <% end %>
  </td>
  <td>
    <span>
      <%= link_to('', edit_easy_entity_activity_path(easy_entity_activity), :class => 'icon-edit xl-icon', title: l(:button_edit), remote: true) %>
    </span>
    <span>
      <%= link_to('', easy_entity_activity, :class => 'icon-del xl-icon', title: l(:button_delete), method: :delete, :data => {:confirm => l(:text_are_you_sure)}, remote: true) %>
    </span>
  </td>
</tr>
<% if easy_entity_activity.description.present? %>
  <tr class="entity-activity-end <%= c_cycle %>">
    <td colspan="6"><%= simple_format_without_paragraph easy_entity_activity.description %></td>
  </tr>
<% end %>
</tbody>
