OSDN Git Service

Merge branch 'v05' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v05
[pettanr/pettanr.git] / app / views / ground_pictures / _list_item.html.erb
1 <tr>
2   <td><%= link_to ground_picture.panel_id, panel_path(ground_picture.panel_id) %></td>
3   <% if ground_picture.picture.showable? @author %>
4     <td><%= link_to(tag(:img, ground_picture.picture.tmb_opt_img_tag), ground_picture) -%></td>
5     <td><%= render ground_picture.picture.credit_template, :picture => ground_picture.picture %></td>
6   <% else %>
7     <td>
8       <%= link_to(tag(:img, ground_picture.picture.tail_tmb_opt_img_tag(asset_path('error.png'))), ground_picture) -%>
9     </td>
10     <td></td>
11   <% end %>
12   <td><%= ground_picture.z %></td>
13   <td><%= ground_picture.repeat %><%= MagicNumber['ground_picture_repeat_items'][ground_picture.repeat] %></td>
14   <td><%= ground_picture.x %></td>
15   <td><%= ground_picture.y %></td>
16   <td><%= distance_of_time_in_words_to_now ground_picture.created_at %></td>
17   <td><%= distance_of_time_in_words_to_now ground_picture.updated_at %></td>
18 </tr>