root/app/views/admin/artwork_step_images/show.rhtml @ 1caaf4a7
7c5b9a4a | Marc Dequènes (Duck) | <h2><%= (@artwork_step_image == @artwork_step_image.artwork.image) ? "" : _("Artwork Step for") + " " %><i><%= @artwork.title %></i></h2>
|
|
b689e231 | Marc Dequènes (Duck) | ||
<h3><%= @artwork_step_image.date %></h3>
|
|||
<% if @artwork_step_image.comment %>
|
|||
<p><%= textilize(@artwork_step_image.comment) %></p>
|
|||
<% end %>
|
|||
<p><%= display_thumbnail(@artwork_step_image) %></p>
|
|||
<p>
|
|||
<%=
|
|||
stacking_table do |table|
|
|||
table.category _("Image Properties") do |cat|
|
|||
cat.content [_("MIME Type:"), @artwork_step_image.content_type]
|
|||
c8180dab | Marc Dequènes (Duck) | cat.content [_("Image Size:"), @artwork_step_image.human_size]
|
|
b689e231 | Marc Dequènes (Duck) | cat.content [_("File Size:"), @artwork_step_image.size]
|
|
end
|
|||
table.category _("EXIF Infos") do |cat|
|
|||
0c0ae9d7 | Marc Dequènes (Duck) | begin
|
|
exif = Exif.new(@artwork_step_image.full_filename)
|
|||
if exif.list_tags(Exif::IFD::EXIF).empty?
|
|||
cat.content _("No EXIF infos")
|
|||
else
|
|||
exif.each_entry { |a,b| cat.content [a, b] }
|
|||
end
|
|||
rescue
|
|||
b689e231 | Marc Dequènes (Duck) | cat.content _("No EXIF infos")
|
|
end
|
|||
end
|
|||
table.category _("Artwork Step Status") do |cat|
|
|||
# created_by / updated_by not supported yet
|
|||
cat.content [_("Entry First Created:"), "#{display_timestamp(@artwork_step_image.created_at)}"]
|
|||
cat.content [_("Entry Last Updated:"), "#{display_timestamp(@artwork_step_image.updated_at)}"]
|
|||
end
|
|||
end
|
|||
%>
|
|||
</p>
|
|||
<%= display_standard_item_actions %><br/>
|
|||
<p><%= link_to_resource_index _("Display all steps") %></p>
|