OSDN Git Service

fix: fetch fail
[pettanr/pettanr.git] / app / views / original_pictures / _exist.html.erb
1 <% if pictures.any? -%>
2   <%= t('original_pictures.exist.announce') %>
3   <table>
4     <tr>
5       <th><%= t_m 'Picture' -%></th>
6       <th><%= t_m 'Picture.credit' -%></th>
7       <th><%= t_m 'Picture.artist_id' -%></th>
8       <th><%= t 'original_pictures.exist.status' -%></th>
9       <th><%= t_m 'ResourcePicture' -%></th>
10     </tr>
11     <% pictures.each do |picture| %>
12       <tr>
13         <% if picture.showable? @operators %>
14           <td>
15             <%= link_to tag(:img, picture.tmb_opt_img_tag), picture %>
16           </td>
17           <td>
18             <%= render picture.credit_template, :picture => picture %>
19           </td>
20         <% else %>
21           <td>
22             <%= link_to tag(:img, picture.tail_tmb_opt_img_tag(asset_path('error.png'))), picture -%>
23           </td>
24           <td>
25           </td>
26         <% end %>
27         <td>
28           <% if picture.artist %>
29             <%= link_to h(picture.artist.name), picture.artist %>
30           <% end %>
31         </td>
32         <td>
33           <% if picture.enable? %>
34             <% if picture.head? %>
35               <%= t 'original_pictures.exist.head' -%>
36             <% else %>
37               <%= t 'original_pictures.exist.tail' -%>
38             <% end %>
39           <% else %>
40             <%= t 'original_pictures.existe.disable' -%>
41           <% end %>
42         </td>
43         <td>
44           <% if picture.enable? %>
45             <%= link_to tag(:img, picture.resource_picture.tmb_opt_img_tag), picture.resource_picture %>
46           <% else %>
47           <% end %>
48         </td>
49       </tr>
50     <% end %>
51   </table>
52 <% end -%>