OSDN Git Service

t#32046:
[pettanr/pettanr.git] / app / views / comics / _list_item.html.erb
1 <tr>
2   <td>
3     <%= link_to comic_icon(:object => comic, :size => 25), comic_path(comic) %>
4     <%= link_to h(truncate(comic.title, :length => 40)), :controller => 'stories', :action => :comic, :id => comic.id %>
5     (<%= comic.stories.size -%>)
6   </td>
7   <td>
8     <%= distance_of_time_in_words_to_now comic.updated_at %>
9   </td>
10   <td>
11     <%= link_to author_icon(:object => comic.author, :size => 25), comic_path(comic.author) %>
12     <%= link_to h(truncate(comic.author.name, :length => 12)), author_path(comic.author) %>
13   </td>
14   <td>
15     <% if comic.own? author %>
16       <%= link_to t('link.edit'), edit_comic_path(comic) %>
17       <%= link_to t('link.destroy'), comic_path(comic), :method => :delete %>
18     <% end %>
19   </td>
20 </tr>
21 <tr>
22   <td colspan="4">
23     <%= h(truncate(comic.description, :length => 40)) %>
24   </td>
25 </tr>