OSDN Git Service

t#30328:create op import ...and pull
[pettanr/pettanr.git] / app / views / panel_colors / index.html.erb
index 812408c..1af79fc 100644 (file)
   </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>