</tr>
<% @panel_colors.each do |pc| %>
- <tr>
- <td><%= link_to pc.panel_id, panel_path(pc.panel_id) %></td>
- <td style="color: #<%= format("%06x", pc.code ^ 0xffffff) -%>; background-color: #<%= format("%06x", pc.code) -%>;"><%= format("%06x", pc.code ^ 0xffffff) %></td>
- <td><%= pc.z %></td>
- <td><%= distance_of_time_in_words_to_now pc.created_at %></td>
- <td><%= distance_of_time_in_words_to_now pc.updated_at %></td>
- </tr>
+ <%= render 'list_item', :panel_color => pc %>
<% end -%>
</table>