OSDN Git Service

w
[pettanr/pettanr.git] / app / views / ground_colors / _list_item.html.erb
1 <tr>
2   <td>
3     <%= link_to ground_color.id, ground_color_path(ground_color) %>
4   </td>
5   <td>
6     <%= link_to(h(truncate(ground_color.caption, :length => 12)), ground_color_path(ground_color)) %>
7   </td>
8   <td style="color: #<%= format("%06x", ground_color.code ^ 0xffffff) -%>; background-color: #<%= format("%06x", ground_color.code) -%>;">
9     <%= format("%06x", ground_color.code ^ 0xffffff) %>
10   </td>
11   </td>
12   <td>
13     <%= link_to panel_icon(:object => ground_color.panel, :size => 25), panel_path(ground_color.panel) %>
14     <%= link_to h(truncate((ground_color.panel.caption), :length => 12)), panel_path(ground_color.panel) %>
15   </td>
16   <td>
17     <%= ground_color.z %>
18   </td>
19   <td>
20     <%= distance_of_time_in_words_to_now ground_color.updated_at %>
21   </td>
22 </tr>