root/app/views/admin/artworks/show.rhtml @ 1caaf4a7
b689e231 | Marc Dequènes (Duck) | <h2><%= sprintf(_("Artwork '%s'"), @artwork.title) %></h2>
|
|
122c63c4 | Marc Dequènes (Duck) | <% if @artwork.image %>
|
|
b689e231 | Marc Dequènes (Duck) | <h3><%= @artwork.image.date %></h3>
|
|
122c63c4 | Marc Dequènes (Duck) | <% end %>
|
|
b689e231 | Marc Dequènes (Duck) | <% 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]
|
|||
122c63c4 | Marc Dequènes (Duck) | cat.content [_("Size:"), @artwork.artwork_size ? @artwork.artwork_size.human_size : ""]
|
|
3807b362 | Marc Dequènes (Duck) | cat.content [_("Materials:"), display_list(@artwork.artwork_materials.collect{|t| t.name})]
|
|
70e65017 | Marc Dequènes (Duck) | cat.content [_("Supports:"), display_list(@artwork.artwork_supports.collect{|t| t.name})]
|
|
b689e231 | Marc Dequènes (Duck) | 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>
|