OSDN Git Service

merge i18n
[pettanr/pettanr.git] / app / views / pictures / show.html.erb
1 <h1><%= t('.title') %></h1>
2 <div>
3   <% if @picture.enable? %>
4     <% if @picture.head? %>
5       <p>
6         <%= t 'pictures.show.announce.head' -%>
7         <%= link_to tag(:img, @picture.tmb_opt_img_tag), resource_picture_path(@picture.resource_picture) %>
8       </p>
9     <% else %>
10       <p>
11         <%= t 'pictures.show.announce.tail' -%>
12         <%= link_to tag(:img, @picture.head.tmb_opt_img_tag), resource_picture_path(@picture.head.resource_picture) %>
13       </p>
14     <% end %>
15   <% else %>
16     <p>
17       <%= t 'pictures.show.announce.disable' -%>
18     </p>
19   <% end %>
20   <% if @picture.own? @artist %>
21     <p>
22       <%= t 'pictures.show.announce.owner' -%>
23       <%= link_to tag(:img, @picture.original_picture.tmb_opt_img_tag), original_picture_path(@picture.original_picture) %>
24     </p>
25   <% end %>
26 </div>
27
28 <% if @picture.showable? @artist %>
29   <%= render 'head', :picture => @picture %>
30 <% else %>
31   <%= render 'tail', :picture => @picture %>
32 <% end %>