OSDN Git Service

t#31470:create pager
[pettanr/pettanr.git] / app / views / home / ground_colors.html.erb
1 <h1><%= t '.title' -%></h1>
2
3 <table>
4   <tr>
5     <th><%= t_m 'GroundColor.id' -%></th>
6     <th><%= t_m 'GroundColor.caption' -%></th>
7     <th><%= t_m 'GroundColor.code' -%></th>
8     <th><%= t_m 'GroundColor.panel_id' -%></th>
9     <th><%= t_m 'GroundColor.z' -%></th>
10     <th><%= t_m 'GroundColor.updated_at' -%></th>
11   </tr>
12
13   <% @ground_colors.each do |gc| %>
14     <%= render 'ground_colors/list_item', :ground_color => gc, :author => @author %>
15   <% end -%>
16 </table>
17 <%= paginate(@paginate) %>
18 <%= link_to t('ground_colors.new.title'), new_ground_color_path %>