OSDN Git Service

t#30102:update i18n op rp au ar gc gp pc
[pettanr/pettanr.git] / app / views / ground_colors / index.html.erb
1 <h1><%= t '.title' -%></h1>
2
3 <table>
4   <tr>
5     <th><%= t_m 'GroundColor.panel_id' -%></th>
6     <th><%= t_m 'GroundColor.color_id' -%></th>
7     <th><%= t_m 'GroundColor.z' -%></th>
8     <th><%= t_m 'GroundColor.created_at' -%></th>
9     <th><%= t_m 'GroundColor.updated_at' -%></th>
10   </tr>
11
12   <% @ground_colors.each do |gc| %>
13     <tr>
14       <td><%= link_to gc.panel_id, panel_path(gc.panel_id) %></td>
15       <td style="color: #<%= format("%06x", gc.color.code ^ 0xffffff) -%>; background-color: #<%= format("%06x", gc.color.code) -%>;"><%= h gc.color.name %></td>
16       <td><%= gc.z %></td>
17       <td><%= distance_of_time_in_words_to_now gc.created_at %></td>
18       <td><%= distance_of_time_in_words_to_now gc.updated_at %></td>
19     </tr>
20   <% end -%>
21 </table>