OSDN Git Service

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