OSDN Git Service

w
[pettanr/pettanr.git] / app / views / scrolls / list.html.erb
1 <h1><%= t '.title' -%></h1>
2
3 <table>
4   <tr>
5     <th><%= t_m 'Scroll.id' -%></th>
6     <th><%= t_m 'Scroll.title' -%></th>
7     <th><%= t_m 'Scroll.visible' -%></th>
8     <th><%= t_m 'Scroll.author_id' -%></th>
9     <th><%= t_m 'Scroll.created_at' -%></th>
10     <th><%= t_m 'Scroll.updated_at' -%></th>
11   </tr>
12
13 <% @scrolls.each do |scroll| %>
14   <tr>
15     <td><%= link_to scroll.id, browse_scroll_path(scroll) %></td>
16     <td><%= h(truncate(scroll.title, :length => 12)) %></td>
17     <td><%= scroll.visible %></td>
18     <td><%= link_to scroll.author_id, browse_author_path(scroll.author) %></td>
19     <td><%= l scroll.created_at %></td>
20     <td><%= l scroll.updated_at %></td>
21   </tr>
22 <% end %>
23 </table>
24