OSDN Git Service

t#30009:fix views
[pettanr/pettanr.git] / app / views / comics / _list_item.html.erb
1 <tr>
2   <td>
3     <%= link_to h(truncate(comic.title, :length => 40)), :controller => 'stories', :action => :comic, :id => comic.id %>
4   </td>
5   <td>
6     <%= link_to h(truncate(comic.author.name, :length => 12)), author_path(comic.author) %>
7   </td>
8   <td>
9     <%= comic.updated_at %>
10   </td>
11   <td>
12     <% if comic.own? author %>
13       <%= link_to 'edit', edit_comic_path(comic) %>
14       <%= link_to 'destroy', comic_path(comic), :method => :dellete %>
15     <% end %>
16   </td>
17 </tr>