|
<h2><%= sprintf(_("Artwork '%s'"), @artwork.title) %></h2>
|
|
|
|
<% if @artwork.image %>
|
|
<h3><%= @artwork.image.date %></h3>
|
|
<% end %>
|
|
<% if @artwork.comment %>
|
|
<p><%= textilize(@artwork.comment) %></p>
|
|
<% end %>
|
|
<p><%= display_thumbnail(@artwork.image) %></p>
|
|
|
|
<p>
|
|
<%=
|
|
stacking_table do |table|
|
|
table.category _("General") do |cat|
|
|
text = ""
|
|
if @artwork.artwork_set
|
|
text += @artwork.artwork_set.name
|
|
text += " (#{@artwork.artwork_set_position})" if @artwork.artwork_set_position
|
|
text += " / "
|
|
if @artwork.artwork_group
|
|
text += @artwork.artwork_group.name
|
|
text += " (#{@artwork.artwork_group_position})" if @artwork.artwork_group_position
|
|
else
|
|
text += "-"
|
|
end
|
|
else
|
|
text += "-"
|
|
end
|
|
cat.content [_("Set / Group:"), text]
|
|
cat.content [_("Size:"), @artwork.artwork_size ? @artwork.artwork_size.human_size : ""]
|
|
cat.content [_("Materials:"), display_list(@artwork.artwork_materials.collect{|t| t.name})]
|
|
cat.content [_("Supports:"), display_list(@artwork.artwork_supports.collect{|t| t.name})]
|
|
end
|
|
table.category _("Result") do |cat|
|
|
cat.content [_("Condition:"), @artwork.artwork_condition.name]
|
|
cat.category _("Placement") do |cat2|
|
|
cat2.content [_("Reason:"), @artwork.artwork_placement_reason.name]
|
|
cat2.content [_("Location:"), @artwork.placement_location]
|
|
cat2.content [_("Date:"), display_timestamp(@artwork.placement_date)]
|
|
end if @artwork.artwork_placement_reason
|
|
end
|
|
table.category _("Artwork Status") do |cat|
|
|
# created_by / updated_by not supported yet
|
|
cat.content [_("Entry First Created:"), "#{display_timestamp(@artwork.created_at)}"]
|
|
cat.content [_("Entry Last Updated:"), "#{display_timestamp(@artwork.updated_at)}"]
|
|
end
|
|
end
|
|
%>
|
|
<%= display_standard_item_actions %>
|
|
</p>
|
|
<p><%= link_to_children_index @artwork, ArtworkStepImage, _("View Steps"), false, _("View all Steps") %></p>
|
|
<p><%= link_to_resource_index _("Display all sets") %></p>
|