OSDN Git Service

w
[pettanr/pettanr.git] / app / views / balloons / list.html.erb
1 <h1><%= t '.title' -%></h1>
2
3 <table>
4   <tr>
5     <th><%= t_m 'Balloon.id' -%></th>
6     <th><%= t_m 'Balloon.speech_balloon_id' -%></th>
7     <th><%= t_m 'Balloon.system_picture_id' -%></th>
8     <th><%= t_m 'Balloon.x' -%></th>
9     <th><%= t_m 'Balloon.y' -%></th>
10     <th><%= t_m 'Balloon.width' -%></th>
11     <th><%= t_m 'Balloon.height' -%></th>
12     <th><%= t_m 'Balloon.r' -%></th>
13     <th><%= t_m 'Balloon.settings' -%></th>
14     <th><%= t_m 'Balloon.created_at' -%></th>
15     <th><%= t_m 'Balloon.updated_at' -%></th>
16   </tr>
17   
18   <% @balloons.each do |balloon| %>
19     <tr>
20       <td><%= link_to balloon.id, browse_balloon_path(balloon) %></td>
21       <td><%= link_to balloon.speech_balloon_id, browse_speech_balloon_path(balloon.speech_balloon) %></td>
22       <td><%= link_to tag(:img, balloon.system_picture.tmb_opt_img_tag), browse_system_picture_path(balloon.system_picture) %></td>
23       <td><%= balloon.x %></td>
24       <td><%= balloon.y %></td>
25       <td><%= balloon.width %></td>
26       <td><%= balloon.height %></td>
27       <td><%= balloon.r %></td>
28       <td><%= h(truncate(balloon.settings, :length => 12)) %></td>
29       <td><%= l balloon.created_at %></td>
30       <td><%= l balloon.updated_at %></td>
31     </tr>
32   <% end %>
33 </table>