OSDN Git Service

w
[pettanr/pettanr.git] / app / views / ground_pictures / _list_item.html.erb
1 <tr>
2   <td>
3     <%= link_to(h(ground_picture.id.to_s), ground_picture_path(ground_picture)) %>
4   </td>
5   <td>
6     <%= link_to(h(truncate(ground_picture.caption, :length => 12)), ground_picture_path(ground_picture)) %>
7   </td>
8   <% if ground_picture.picture.showable? @author %>
9     <td>
10       <%= link_to(tag(:img, ground_picture.picture.tmb_opt_img_tag), ground_picture.picture) -%>
11     </td>
12     <td><%= render ground_picture.picture.credit_template, :picture => ground_picture.picture %></td>
13   <% else %>
14     <td>
15       <%= link_to(tag(:img, ground_picture.picture.tail_tmb_opt_img_tag(asset_path('error.png'))), ground_picture) -%>
16     </td>
17     <td></td>
18   <% end %>
19   <td>
20     <%= link_to panel_icon(:object => ground_picture.panel, :size => 25), panel_path(ground_picture.panel) %>
21     <%= link_to h(truncate((ground_picture.panel.caption), :length => 12)), panel_path(ground_picture.panel) %>
22   </td>
23   <td>
24     <%= ground_picture.z %>
25   </td>
26   <td>
27     <%= ground_picture.repeat_text %>
28   </td>
29   <td><%= ground_picture.x %></td>
30   <td><%= ground_picture.y %></td>
31   <td><%= distance_of_time_in_words_to_now ground_picture.updated_at %></td>
32 </tr>