OSDN Git Service

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