-<h1>Listing comics</h1>
+<h1><%= t '.title' -%></h1>
<table>
<tr>
- <th>id</th>
- <th>Title</th>
- <th>width</th>
- <th>height</th>
- <th>visible</th>
- <th>editable</th>
- <th>author_id</th>
- <th>created_at</th>
- <th>updated_at</th>
- <th></th>
+ <th><%= t_m 'Comic.id' -%></th>
+ <th><%= t_m 'Comic.title' -%></th>
+ <th><%= t_m 'Comic.visible' -%></th>
+ <th><%= t_m 'Comic.author_id' -%></th>
+ <th><%= t_m 'Comic.created_at' -%></th>
+ <th><%= t_m 'Comic.updated_at' -%></th>
</tr>
<% @comics.each do |comic| %>
<tr>
- <td><%= link_to comic.id, :action => :browse, :id => comic.id %></td>
- <td><%= h comic.title %></td>
- <td><%= comic.width %></td>
- <td><%= comic.height %></td>
+ <td><%= link_to comic.id, browse_comic_path(comic) %></td>
+ <td><%= h(truncate(comic.title, :length => 12)) %></td>
<td><%= comic.visible %></td>
- <td><%= comic.editable %></td>
- <td><%= link_to comic.author_id, :controller => '/comics', :action => :browse, :id => comic.author_id %></td>
- <td><%= comic.created_at %></td>
- <td><%= comic.updated_at %></td>
- <td>
- <%= link_to 'Destroy', comic, confirm: 'Are you sure?', method: :delete %>
- </td>
+ <td><%= link_to comic.author_id, browse_author_path(comic.author) %></td>
+ <td><%= l comic.created_at %></td>
+ <td><%= l comic.updated_at %></td>
</tr>
<% end %>
</table>