OSDN Git Service

w
[pettanr/pettanr.git] / app / views / sheets / _list_item.html.erb
1 <tr>
2   <td>
3     <%= link_to sheet_icon(:object => sheet, :size => 25), sheet_path(sheet) %>
4     <%= link_to h(truncate(sheet.caption, :length => 40)), play_sheet_path(sheet) %>
5     (<%= sheet.sheet_panels.size -%>)
6   </td>
7   <td>
8     <%= distance_of_time_in_words_to_now sheet.updated_at %>
9   </td>
10   <td>
11     <%= link_to author_icon(:object => sheet.author, :size => 25), author_path(sheet.author) %>
12     <%= link_to h(truncate(sheet.author.name, :length => 12)), author_path(sheet.author) %>
13   </td>
14   <td>
15     <% if sheet.own? author %>
16       <%= link_to t('link.edit'), edit_sheet_path(sheet) %>
17       <%= link_to t('link.destroy'), sheet_path(sheet), :method => :delete %>
18     <% end %>
19   </td>
20 </tr>