OSDN Git Service

Merge branch 'v06' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06
[pettanr/pettanr.git] / app / views / authors / ground_pictures.html.erb
1 <h1><%= t '.title' -%></h1>
2
3 <table>
4   <tr>
5     <th><%= t_m 'GroundPicture.panel_id' -%></th>
6     <th><%= t_m 'GroundPicture.picture_id' -%></th>
7     <th><%=   -%></th>
8     <th><%= t_m 'GroundPicture.z' -%></th>
9     <th><%= t_m 'GroundPicture.repeat' -%></th>
10     <th><%= t_m 'GroundPicture.x' -%></th>
11     <th><%= t_m 'GroundPicture.y' -%></th>
12     <th><%= t_m 'GroundPicture.created_at' -%></th>
13     <th><%= t_m 'GroundPicture.updated_at' -%></th>
14   </tr>
15
16   <% @ground_pictures.each do |ground_picture| %>
17     <tr>
18       <td><%= link_to ground_picture.panel_id, panel_path(ground_picture.panel_id) %></td>
19       <% if ground_picture.picture.showable? @author %>
20         <td><%= link_to(tag(:img, ground_picture.picture.tmb_opt_img_tag), ground_picture) -%></td>
21         <td><%= render ground_picture.picture.credit_template, :picture => ground_picture.picture %></td>
22       <% else %>
23         <td>
24           <%= link_to(tag(:img, ground_picture.picture.tail_tmb_opt_img_tag(asset_path('error.png'))), ground_picture) -%>
25         </td>
26         <td></td>
27       <% end %>
28       <td><%= ground_picture.z %></td>
29       <td><%= ground_picture.repeat %><%= MagicNumber['ground_picture_repeat_items'][ground_picture.repeat] %></td>
30       <td><%= ground_picture.x %></td>
31       <td><%= ground_picture.y %></td>
32       <td><%= distance_of_time_in_words_to_now ground_picture.created_at %></td>
33       <td><%= distance_of_time_in_words_to_now ground_picture.updated_at %></td>
34     </tr>
35   <% end %>
36 </table>