OSDN Git Service

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