OSDN Git Service

t#31471:add panel catch
[pettanr/pettanr.git] / app / views / resource_pictures / show.html.erb
1 <h1><%= t '.title' -%></h1>
2 <p id="notice"><%= notice %></p>
3
4 <%= link_to tag(:img, @resource_picture.opt_img_tag), @resource_picture.url %>
5
6 <%= render @resource_picture.full_credit_template, :picture => @resource_picture %>
7
8 <p>
9   <b><%= t_m 'ResourcePicture.ext' -%>:</b>
10   <%= @resource_picture.ext %>
11 </p>
12
13 <p>
14   <b><%= t_m 'ResourcePicture.width' -%>:</b>
15   <%= @resource_picture.width %>
16 </p>
17
18 <p>
19   <b><%= t_m 'ResourcePicture.height' -%>:</b>
20   <%= @resource_picture.height %>
21 </p>
22
23 <p>
24   <b><%= t_m 'ResourcePicture.filesize' -%>:</b>
25   <%= @resource_picture.filesize %>
26 </p>
27
28 <p>
29   <b><%= t_m 'ResourcePicture.artist_id' -%>:</b>
30   <%= link_to h(@resource_picture.artist.name), artist_path(@resource_picture.artist) %>
31 </p>
32
33 <p>
34   <b><%= t_m 'ResourcePicture.created_at' -%>:</b>
35   <%= l @resource_picture.created_at %>
36 </p>
37
38 <p>
39   <b><%= t_m 'ResourcePicture.updated_at' -%>:</b>
40   <%= l @resource_picture.updated_at %>
41 </p>
42
43 <%= link_to t('link.back'), resource_pictures_path %>
44
45 <% if @author and @author.working? -%>
46   <h3><%= t('home.index.catch') -%></h3>
47   <%= link_to panel_icon(:object => @author.working_panel, :size => 25), panel_path(@author.working_panel) %>
48   <%= link_to @author.working_panel.caption, main_app.panel_path(@author.working_panel) %>
49
50   <p>
51     <%= link_to t('resource_pictures.add_to_panel'), main_app.new_panel_picture_path(:panel_picture => {:panel_id => @author.working_panel.id, :picture_id => @resource_picture.picture_id}) %>
52   </p>
53 <% end -%>