Project

General

Profile

Download (1.82 KB) Statistics
| Branch: | Tag: | Revision:

root / app / views / admin / artworks / show.rhtml @ 70e65017

1
<h2><%= sprintf(_("Artwork '%s'"), @artwork.title) %></h2>
2

    
3
<h3><%= @artwork.image.date %></h3>
4
<% if @artwork.comment %>
5
<p><%= textilize(@artwork.comment) %></p>
6
<% end %>
7
<p><%= display_thumbnail(@artwork.image) %></p>
8

    
9
<p>
10
<%=
11
stacking_table do |table|
12
  table.category _("General") do |cat|
13
  text = ""
14
  if @artwork.artwork_set
15
    text += @artwork.artwork_set.name
16
    text += " (#{@artwork.artwork_set_position})" if @artwork.artwork_set_position
17
    text += " / "
18
    if @artwork.artwork_group
19
      text += @artwork.artwork_group.name
20
      text += " (#{@artwork.artwork_group_position})" if @artwork.artwork_group_position
21
    else
22
      text += "-"
23
    end
24
  else
25
    text += "-"
26
  end
27
  cat.content [_("Set / Group:"), text]
28
  cat.content [_("Size:"), @artwork.artwork_size.human_size]
29
  cat.content [_("Material:"), @artwork.artwork_material.name]
30
  cat.content [_("Supports:"), display_list(@artwork.artwork_supports.collect{|t| t.name})]
31
  end
32
  table.category _("Result") do |cat|
33
    cat.content [_("Condition:"), @artwork.artwork_condition.name]
34
    cat.category _("Placement") do |cat2|
35
     cat2.content [_("Reason:"), @artwork.artwork_placement_reason.name]
36
     cat2.content [_("Location:"), @artwork.placement_location]
37
     cat2.content [_("Date:"), display_timestamp(@artwork.placement_date)]
38
    end if @artwork.artwork_placement_reason
39
  end
40
  table.category _("Artwork Status") do |cat|
41
    # created_by / updated_by not supported yet
42
    cat.content [_("Entry First Created:"), "#{display_timestamp(@artwork.created_at)}"]
43
    cat.content [_("Entry Last Updated:"), "#{display_timestamp(@artwork.updated_at)}"]
44
  end
45
end
46
%>
47
<%= display_standard_item_actions %>
48
</p>
49
<p><%= link_to_children_index @artwork, ArtworkStepImage, _("View Steps"), false, _("View all Steps") %></p>
50
<p><%= link_to_resource_index _("Display all sets") %></p>
(5-5/5)