OSDN Git Service

Merge branch 'v06' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06
[pettanr/pettanr.git] / app / views / colors / list.html.erb
1 <h1><%= t '.title' -%></h1>
2
3 <table>
4   <tr>
5     <th><%= t_m 'Color.id' -%></th>
6     <th><%= t_m 'Color.name' -%></th>
7     <th><%= t_m 'Color.code' -%></th>
8     <th><%= t_m 'Color.code' -%></th>
9     <th><%= t_m 'Color.t' -%></th>
10     <th><%= t_m 'Color.created_at' -%></th>
11     <th><%= t_m 'Color.updated_at' -%></th>
12   </tr>
13
14 <% @colors.each do |c| %>
15   <tr>
16     <td><%= c.id %></td>
17     <td><%= h c.name %></td>
18     <td><%= c.code %></td>
19     <td style="background-color: #<%= format("%06x", c.code) -%>;"></td>
20     <td><%= c.t %></td>
21     <td><%= l c.created_at %></td>
22     <td><%= l c.updated_at %></td>
23   </tr>
24 <% end -%>
25 </table>