OSDN Git Service

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