OSDN Git Service

Merge branch 'v05' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v05
[pettanr/pettanr.git] / app / views / authors / comics.html.erb
1 <h1><%= t '.title' -%></h1>
2
3 <table>
4   <% @comics.each do |comic| %>
5     <tr>
6       <td>
7         <%= link_to comic_icon(:object => comic, :size => 25), comic_path(comic) %>
8         <%= link_to h(truncate(comic.title, :length => 40)), :controller => 'stories', :action => :comic, :id => comic.id %>
9         (<%= comic.stories.size -%>)
10       </td>
11       <td>
12         <%= distance_of_time_in_words_to_now comic.updated_at %>
13       </td>
14       <td>
15         <%= link_to author_icon(:object => comic.author, :size => 25), comic_path(comic.author) %>
16         <%= link_to h(truncate(comic.author.name, :length => 12)), author_path(comic.author) %>
17       </td>
18       <td>
19         <% if comic.own? @author %>
20           <%= link_to t('link.edit'), edit_comic_path(comic) %>
21           <%= link_to t('link.destroy'), comic_path(comic), :method => :delete %>
22         <% end %>
23       </td>
24     </tr>
25   <% end %>
26 </table>
27 <%= link_to t('comics.new.title'), new_comic_path %>